on ‎2007 Sep 25 7:37 AM
Hi All,
I am stuck a very strange place in my developement. The situation is in one step I am using parellel processing. The terminating event for that step is EVT1. now lets say the multiline element in step has 4 agents and one of the event does his work and clicks on a particular button triggering EVT1. now this EVt1 will terminate rest 3 parellel branches also which I don`t want. I have tried capturing the event creator using a fork but with which variable do I compare this event creator (in the end condition) ? I mean the Actual agent wont have a value untill the step is complete.
Hope I am clear on my requirement.
Please help.
Thanks in Adv
Anuj Sethi
Request clarification before answering.
So your problem is, that the event which gets triggered has the same key as the 4 wait for event steps and you have no idea which one to close when the event gets triggered.
Also you can't use a different event where you can know which branch should stop.
Could you post the functional requirement/business spec. Maybe we can come up with a different solution.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the requirement in bit detail:
A clerk will create an appraisal form. As soon as he submits it a workflow will start. It will go to the manager and some part apprisers. Now if manager completes the form first then part appraisers won`t have to do anything (meaning the workflow should complete).
For part appraisers, they see a button in form and when they click an event EVT1 is triggered. I have made this EVT1 as the terminating event for this task ( this is kind of neccesary) Now every one of them is capable of clicking this button and hence triggering the event and hence terminating rest of the workitems along with their own. I want to prevent this and I want a trick which will end only respectinve workitems.
Hope the requirement is clear , Thanks in Adv !
Anuj Sethi
Hi Anuj
Got stuck up:))). It is a very tricky scenario. 2 things you can try
1) Include a key field in your Buisness object that will take care of the issue. Include may be the index of the Multiliner element
2) You can try to use the same EVT1 as the triggering event of the task also. In the start condition of the task make sure that the Event Creator is not the person who has already approved and also make sure that the task is part of a current workflow that is in progress. Make use of SAP_Workitem_TO_Object.
So how are you man? It is morning in Brazil. I am mostly awake in SAP forums. Post tough question like this it makes Workflow Consultant think out of the blocks.
Thanks
Arghadip
Guys Finally I made some break thru but got stuck in one more place..
Lets say the prarallel processing is sending workitem to 2 person. I complete one of the workitem thru FM SAP_WAPI_WORKITEM_COMPLETE . The workitem gets completed and disappears from inbox. But the Workflow throws an error. It says "No successor found for Node 9". Node 9 is the node where this parallel processing is happening.
Does this mean I can`t complete the workitem from outside i.e. from FMs
is there any work around?
Please help!!!
Anuj Sethi
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.