task table without data generated
Joined: 21 Sep 2012
Topic: task table without data generated
Posted: 08 Jun 2013 at 12:25pm
I"m writing code using the example of section 7.3 of the manual and I do not get the desired results, by executing the following line "WorkFlow.WorkflowEngine.RunWorkflow (wfi)" on the table "WSTASKINSTANCE" does not generate any information and Table "WSWORKFLOWINSTANCE "is generated correctly.
allowed me to make some changes in the product demo to see if it was my application, and got the same results from my application.
the following code are the changes made to the product demo.
TfmMain.Button1Click procedure (Sender: TObject); var
WFD: = WorkflowStudio1.WorkFlowManager.FindWorkflowDefinitionByName ("Deployment workflow");
if not Assigned (WFD) then
wfi: = WorkflowStudio1.WorkflowManager.CreateWorkflowInstance (WFD);
if not assigned (wfi) then
HOPEFULLY COULD HELP ME FIND THE ERROR
Wagner R. Landgraf
Joined: 18 May 2010
|Post Options Quote Reply Posted: 09 Jun 2013 at 6:23pm|
Do not destroy workflow instance after calling RunWorkflow.
RunWorkflow runs in a synchronized thread and thus returns immediately, so you are destroying workflow instance before it gets executed. You don't need to do that, RunWorkflow will destroy the instance when it's finished.
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum