on 2009 Feb 04 11:55 PM
On a workflow model I have an activity task that execute an object's method in background processing. The method returns data which are used by the next step ( a condition step ). But the values obtained by the task (method) are null and the condition step take incorrect decision.
How can I be sure that the task in background processing are finished? Then I could to take the corrects values in condition step.
Hello,
For this to work, the step that executes the background task has to pass the values from the task container to the workflow container, and the workflow container has to pass it to the task in the next step. Check the container values in the workflow log to see where it's going wrong.
regards
Rick Bakker
Hanabi Technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurus,
Thanks for your responses. The problem was that the values returned by the method was wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont see any issue with the workflow but the method. You need make sure you implement appropriate code in the method to pass correct values to workflow back. Before that just execute the method and see appropriate values are got.
Sometimes due the temporary error (like lock) the method does not try again. To make sure it tries multiple time, you need do configurations in SUW3.
Further I would recommand to put proper error handling. Make the import parameters in workflow as mandatory. So incase method does not pass value then workflow error, instead of going to incorrect path.
-Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if I understand you right you want to make sure at runtime, that the method executed by the task realy finished? Execute the task in an asynchronous step. This must have an completing-event the task is waiting for to change into status 'completed'. This event has to be raised by the method executed in the background. The data to be returned by the method should be passed as parameters by the event.
regards
Dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the log of the workflow in the SWWL txn or SWIA txn , there you can see the worktiem text along with the status of the workitem either it will be complted or error
to resolve this try to make the task as foreground and put a breakpoint in the BO method and then execute it, so that you can debug the method of the task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Juan,
Try to debug the task method and check if the correct values are returned by it. To do so, you can either manually test the method or execute in foreground.
If the correct values are getting returned, check if the values are getting passed from the method to task container and then from task container to workflow container.
To check that, you can go to the workflow log and check the value of the containers at various levels.
Now check if the value is correctly passed to the next step.
Hope this helps!
Regards,
Saumya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi JA,
you could either set a break point in your method and check whether the values are passed.
Else check the workflow log where you can see whether the container fills the vaule.
Hope it helps.
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.