Posted on Sep 20, 2012 at 2.25 PM - Kuala Lumpur, Malaysia
Some time there could be a requirement where you want to perform certain task only if the parallel main task is NOT completed yet. In this case, local workflow can be an ideal candidate to use, as it will automatically ends once the main workflow reach 'completed' status. A local Workflow is started by means of a local event. A local Workflow is called asynchronously. This means that the caller step does not wait for the local workflow to be completed.
1. First of all, you need to create and local event which will be used to trigger local workflow that you are going to create. Go to the workflow header and register the local event.
2. Later this event can be triggered by using 'Creating Event' step from the main workflow
3. You can add local workflow by choosing step and perform the necessary binding with the local event from your main workflow
4. Creation of step within the local workflow is quite straight forward just like creating step in the main workflow, except for some limitation like that you can NOT have deadline monitoring for the step.
5. The typical workflow definition with local workflow will look something like this:
Life is beautiful! Let's make it meaningful and colorful!