cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Execute Workflow From ABAP Program

vikash_pathak
Participant
0 Likes
3,848

Hi,

I have created a work flow which has three steps

1) will create a system using API

2) Decision : either approve or Reject

3) If Approved then Undeploy The System

and i have written creating and undeploy system codes

in Class and methods.

now my requirement is to trigger this workflow from ABAP program .

Please help me to complete this Requirement.

View Entire Topic
matt
Active Contributor
data(cnt) = cl_swf_cnt_factory=>create_event_container( 
im_objcateg = 'CL' im_objtype = class im_event = event ). "START Data(evt) = cl_swf_evt_event=>get_instance( im_objcateg = 'CL' im_objtype = class im_event = event im_objkey = objkey im_event_container = cnt ). TRY. evt->raise( ). ...

Or suchlike.

vikash_pathak
Participant
0 Likes

we are not adding Workflow task name here ? and how it will be called?

Sandra_Rossi
Active Contributor
0 Likes

vikash.pathak Why triggering the task only? (you told us that this task is one step among the three of your workflow definition)

vikash_pathak
Participant
0 Likes

Then how to trigger whole workflow that all steps could trigger through ABAP Report