cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Object instanciation at Wait event of the workflow.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183917
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member183917
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Vinoth,

The one of the Event is used merelry as dummy for wait in one of the fork leg. The binding is intact as you mention.

And I checked the Log and I am not able to find the instance of the Object there. And Surprisingly Binding looks good to have that.

former_member183917
Active Contributor
0 Kudos

Hi- Object instance should be available in WF container. Somewhere the WF container (holding WF class's instance, which you are sending from &EVT_OBJECT&) is getting freed in your case. So pls check the binding, as WF container should be instantiated for Wait event step

Vinoth

Former Member
0 Kudos

Hi Ingot,

Thanks, The problem was before the wait even step. Binding was proper but I rebuild the step. Now its working fine.