on 10-30-2015 6:57 AM
Hi Everyone,
Being a novice in workflows , I need your help with the following scenario.
I need to re-instantiate a workflow as a new instance only because the current instance says that the WF status is still "In progress", checking in detail I see that some work items have been logically deleted, I don't know how.. but it seems to have happened when someone was trying to manually complete it.
However I do not know how the workflow is triggered or if at all there is a an underlying business object that triggers it.
When I checked under SWDD>>basic data......... I do not see a start condition maintained in the workflow.
I also checked swe2 for an event linkage ... I do not see an entry maintained.
Can someone explain what does this imply? Is there a way to check the business object that triggers this workflow? or is it maintained somewhere?
Thank you
Hi,
Then check, is the workflow directly triggered usin fm SAP_WAPI_START_WORKFLOW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Basically you can start a workflow via an event (preferred way) or directly via a function module (or several)
So first check your former instance to see if the workflow had been triggered via an event
If this is the case, then check the setting of the event linkage in SWETYPV or SWE2
if the linkage is inactive it can be cause by the default system setting that is set as deactivate if there is an error => this shall be changed
so you would need to reactivate the event linkage
Cheers
Stephane
Thanks Stephan, I managed to get this resolved.
Firstly, I logically deleted the old instance by marking the first step as Logically deleted.
But later I was stuck because I realized that the wf did not have a start event maintained neither did it have any linkage with SWETYPV or SWE2.
To be honest, I was clueless about what the workflow was doing , neither did i know the business event that triggered it.
But as i was looking into the instance that was logically deleted, I found the Business object name that triggered it. I saw it inside the container instance of one of the old work items. under _wi_object_id.
I used this Business object name to trigger a new instance Via transaction code : SWUS.
A new instance is now triggered.
You made a very good point with "So first check your former instance to see if the workflow had been triggered via an event"
That was the only way I could trace it to the event
Thanks for all your help.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.