Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Invoke class event Handler from an Event of a Workflow Instance

$
0
0

Hello Experts,

 

Please weigh in your suggestions/opinions on my below Question. Highly appreciated. 

 

1. I have Class ZCLTEST which has 2 events defined.  Event A and B.

2. I have a Workflow W1 which gets triggered based on event A. Event A is triggered from a custom program.

3. I have an Event handler (method M1) in the same class for Event B. The event handler is registered in the constructor method.

4. In the workflow W1, I have an "Event creator" Step for event B. I am binding the Class object (&ZCLTEST&) to the Event Object.

 

My understanding is that the Event handler should get invoked upon event B trigger from the Event creator step; but it does not.

I know that, unlike BOR events, Object events are confined to a given internal session.

 

My Question is - Can Event handler be triggered from an Event raised from a Workflow Instance?? Is this fundamentally viable??

 

I know that the event handler method can be called directly from the Workflow as a step; but just want to check if above is possible.

 

 

Thanks,

Fefe


Viewing all articles
Browse latest Browse all 3160

Trending Articles