asp.net - Can use HandleExternalEvent in web pages -
i wonder if web pages controls can used handleexternalevent, illustration running click event of button.
i seek implement without satisfactory results, windows form project have no problem.
private string instanciaguid { { homecoming viewstate["instancia"].tostring(); } set { viewstate.add("instancia", value); } } public bfprueba01 _facadeprueba01 { { homecoming viewstate["facade"] bfprueba01; } set { viewstate["facade"] = value; } } protected void page_load(object sender, eventargs e) { if (!ispostback) coneccionwwf(); } private void coneccionwwf() { workflowruntime runtime = new workflowruntime(); session.add("runtime", runtime); externaldataexchangeservice dataexchange = new externaldataexchangeservice(); runtime.addservice(dataexchange); _facadeprueba01 = new bfprueba01(); dataexchange.addservice(_facadeprueba01); runtime.startruntime(); parameters.add("ousuario", ousuario); workflowinstance instancia = runtime.createworkflow(typeof(wwfsecuencial)); instancia.start(); instanciaguid = instancia.instanceid.tostring(); } protected void btncomenzarwwf_click(object sender, eventargs e) { workflowruntime runtime = session["runtime"] workflowruntime; workflowinstance instance = runtime.getworkflow(new guid(instanciaguid)); _facadeprueba01.raiseeventsecuencial(new comunicacioneventargs(instance.instanceid, movementchangetype.accelerate)); }
asp.net workflow workflow-foundation
No comments:
Post a Comment