cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to execute code within a workflow ?

Former Member
0 Kudos

Hi, I would like to know if it is possible to execute code in a workflow task without having to send the task to an agent since what i need to do doesnt need an agent, the scenario is as follows:

i have a function module that should get data from SAP tables and fill the task container with them, then the task container exports them to the workflow container where they should be used in the rest of the workflow, the problem is i didnt add an agent assignment to the task or the activity that calls it since this task doesnt need to run by any user and now the rest of the workflow doesnt execute

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Your task has to be of type "background task", which you will achieve by the setting of dialog = space in the BOR method (if you are using BOR object as the WF object).

With this setting your task does not need to have any actors set.

Former Member
0 Kudos

That was absolutely spot on thank you very much

Answers (1)

Answers (1)

GirieshM
Active Contributor
0 Kudos

Hi Abdelrahman,

Yes it is possible by writing your custom task as an activity.

With Regards,

Giriesh M