batch vs dialog

Mike Gambier madgambler at hotmail.com
Wed Jun 5 08:51:25 EDT 2013


Hi,

Presume you're really talking about DIA Work Processes? Worklow's not strictly running in true dialog mode.

I guess the answer is: it depends. 

Can we assume your 'task' is being started asynchronously?

If so, have you considered using a fork with an end condition and in a parallel branch to your task add an event listener. Your asynch task could yhen raise this event when it's done. Useful if the thing you're waiting for might not happen for a while. Or if the thing you're waiting for might happen even if your existing step runs into trouble. The event could even be queued and SWEQSRV could push the WF on if volumes are a problem. 

Or, after your existing step add a condition check within a loop and combine this with an end condition and use a wait step (deadline) to trigger another loop pass to see if what you're waiting for has happened. This approach is useful for escalations to catch delays. Of course the onus will be on SWWDHEX Batch Job to pick up the baton. 

So many ways, really. All depends on how quickly you want the WF to follow on the back of your asynchronous task I suppose. 

Then again, if your WF must wait for the Database update to occur /before/ it is allowed to proceed and no delay is expected then it's not out of the question to enforce a COMMIT WORK AND WAIT inside your step. Especially handy if the step is going to affect the runtime object instance the WF is working with. Not pretty, but effective.

Mike GT

Sent from my iPhone

On 5 Jun 2013, at 13:07, "Robert van den Berg " <wug at bergtop-ict.nl> wrote:

> Hi all,
> 
>  
> 
> we have a workfow which has a task which takes longer than the dialog time to complete.
> 
> Is it possible to execute a task in a batch proces?
> 
>  
> 
> As I recall, all workflow steps are executed in a dialog process, but I want to make sure there is no other option.
> 
>  
> 
> Kind regards,
> 
> Robert
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20130605/0b2a0236/attachment.htm
-------------- next part --------------
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


More information about the SAP-WUG mailing list