Skip to Content
0

workflow deadline monitoring workitem exit

Oct 31, 2016 at 12:43 PM

79

avatar image

Hello i'm quite new to workflow and still practicing. I'm trying to understand exactly how the deadline monitoring of workitem works.

I've created a simple workflow with a decision task, with lastend set at 3min.

The reminder is being send correctly to the sapoffice inbox.

I wanted to use the workitem exit too. i've build the custom class and my method follwing the tutorials.

i have on issue when i'm trying to update a table when the deadline is reachted and no action as been taken.

in the IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED,

i'm trying to trigger the event like this:

*get the context to retrieve the paramter to call the methods
  me->wi_context = im_workitem_context.
*call the methods depending of the event name.
  CASE im_event_name.
    WHEN swrco_event_after_rule_exec.
      me->afterdeadline_reminder( ).
    WHEN OTHERS.
  ENDCASE.

in my method i get the rules like this

 lt_agents =  wi_context->get_rule_result( ).

then i insert the data in a table, but it's not working.

What do i miss please?

how can i debug it? i can put a break point in the method but i don't understand how catch when the method starts.

Regards

10 |10000 characters needed characters left characters exceeded

comment i have debug the method

the table lt_agents is empty, do i need to have another parameter in my decision task? maybe biding?

Thanx

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Ron Johns Nov 12, 2016 at 08:52 AM
0

Hi Marco,

What is the intent of updating a table?

Are you trying to see if the exit is working?

Share
10 |10000 characters needed characters left characters exceeded
Sankar Gopalan Nov 14, 2016 at 08:30 AM
0

Hi Marco,

Instead of using the exit you may use modeled deadline monitoring.

Create another method/ task which does the table update , you will have much more flexibility by using modeled deadline monitoring.

Please refer to the below link:

Modeled Deadline Monitoring or Standard Escalation

Regards,

Sankar

Share
10 |10000 characters needed characters left characters exceeded