| | | Forum Newbie
       
Group: Forum Members Last Login: Wednesday, March 26, 2008 Posts: 2, Visits: 17 |
| Hi,
I have a workflow where I call a child workflow. In some circumstances I want to abort this child without affecting the execution of the parent workflow.
I'm currently killing the child with the function Workflow.NET.Engine.Client.Kill(int ExecutionId) but if I use only this, in the parent workflow, the state of the child remains 'waiting'.
How can I tell the parent workflow to ignore the child workflow state?
I've tried these approaches: * Setting the 'Wait for the child workflow?' propriety in the process designer to 'No' * Setting 'Execution mode' in the process designer to 'Asynchronous'
I've also tried through the API using the function Workflow.NET.Engine.RunTime.InsertOutcomeActions but I'm not sure which arguments should I pass. I've looked into the SKChildWorkflows table in the database and I'm passing the ExecutionDetailsId as the first argument (InlinkActionExecutionDetailsID) to the function. The second (InlinkActionVariablesId) and fifth (ClientInfo) I'm not sure what they are, so I'm passing 0 and null respectively. The other arguments I think I know what they're. It works sometimes but in many cases it returns a NullPointerException.
Can anyone help?
Thank you for your time.
Regards, Vítor
|
| |
|
|