on 01-03-2012 1:13 PM
Hi Expert,
I have created a custom workflow using classes. In my workflow there are two other event to control the process from outside workflow. When these event triggered outside It captured in our Workflow but it looks that its not able to instantiate the object at that time. And its landing to the error with Error when processing node '0000000304' (ParForEach index 000000) When i checked in Diagnosis transaction found the object was not instantiated.
I checked the Binding and all are in place. And there is no problem at trigerring the Event as the same routine is used to trigger the Workflow with create event. I am suspecting the issue might be at BI_PERSISTENTFIND_BY_LPOR or BI_PERSISTENTLPOR method of the class. But I am not sure as I am using the class first time for the workflow.
Please suggest.
Hi-
And there is no problem at trigerring the Event as the same routine is used to trigger the Workflow with create event.
It seems, you have mentioned the WF container (refers to class) with class event in wait step but this WF container was not instantiated when wait event occurs. WF container should have instance (Class or BO) for wait step unless and until if you are using correlation
Can you tell us, the triggering event and 2 other wait event belongs to same class?. If it is yes, probably you need to bind class instance from event to WF container (mentioned in wait step)
If 2 other wait event belongs to separate class, then yes you need to instantiate that class using FIND_BY_LPOR and LPOR methods, before your wait step
Vinoth
Edited by: S Vinoth on Jan 3, 2012 7:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth
Thanks for your quick reply. Yes the all three event belongs to the same Class. And the control event other than create is binded from event to workflow.
Just to add I am using these event in a 3 branch Fork. in Branch 1 & 2 First control event and in the third branch Second control event. When First Event is Trigerred I am getting this error for event at second branch.
Edited by: Chandrashekhar on Jan 3, 2012 7:50 PM
Ok, so you have the class instance in WF container via event to WF binding like this :
&EVT_OBJECT& -> &WF_CONT&
This WF container should refers to WF class.
in Branch 1 & 2 First control event and in the third branch Second control event.
could you tell, why is it required to have same event in 2 leg of Fork?. Also pls check in WF log, the WF container (&WF_CONT& in our example) has class's instance
Vinoth
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.