www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » Skelta Workflow Net » Skelta Workflow Net » Application Development » How to force a child workflow to finish...


How to force a child workflow to finish...Expand / Collapse
Author
Message
Posted Wednesday, March 19, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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


Post #695
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 2 (2 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 3:49am

 
Execution: 0.063.9 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company