on 09-10-2008 2:34 PM
Hi All,
We have a task and method. the method works fine when tested individually, returns the correct values.
However when the task is executed in background mode, the element in container is not updated. If the processing mode is foreground, the element is rightly updated in container.
Clearly it has nothing to do with binding since I get the elements when I execute the task in foreground.
any ideas would be welcome.
thanks,
Gautam
Please do a binding of Business Object from Wflow Container -> task container element WI_OBJECT_ID and this issue will be resolved.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you should change the binding of Workflow to Task. Your method is getting executed from task. Go to PFTC->Workflow Template number->Workflow Builder->Identify the Step that is executing the Task-> Change the Binding from Workflow to Task.No changes is require for binding from Task to Method.
Thanks
Arghadip
I definitely dont know workflow as much as you do dude, but what I am trying to explain you is I have checked the bindings, they work fine when the WF is executed and the task is set as foreground..
Once I change the task to background and execute the WF, its not returning values...I went through other threads and figured out clearly it is not binding issue..
HI,
When you say, it's not picking up the cont. element in the background task, what do you mean..that cont. element is blank or the step is struck or completed but no value..Tell us what's happening when you run this as background task.
Also, did you check if you have all the necessary auth. for WF-BATCH ?. And, when you go to wflow log in the background task, expand it and see for the last process "Result Processing" by WF-BATCH, that is the last process of execution of a witem.
More Specific details would definitely help.
venu
Actually, I believe the problem is related to binding.
When called in the foreground, object references (and data references) are present in memory for all subsequent processing.
You probably need to make the CONTAINER "Persistent".
In your code, call the macro SWC_CONTAINER_TO_PERSISTENT <container name here>. For example:
SWC_CONTAINER local_container.
SWC_CREATE_CONTAINER local_container.
" Set you Container elements
" SWC_SET_ELEMENT local_container 'Element01' lv_element01.
" SWC_SET_TABLE local_container 'Element02' lt_table02.
SWC_CONTAINER_TO_PERSISTENT local_container.
" Start your workflow passing local_container.
Something like this...
Hope this is relevent . . . Apologies if not . . .
Regards,
Tom Carruth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you check the detailed workflow log for the background task's container ?
venu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.