Possible to create UserTasks outside a workflow?

0
Is it possible to create UserTasks using the System.WorkflowUserTask entity outside of a workflow, or is this something you should never do?   For example, I have the use case where I have a very simple task for which I don't need the functionality of a workflow. I believe that in theory I could set the targeted users, assigned user and all the other attributes etc. from within a microflow without doing this in the workflow on the Create Task activity. Is this a viable approach?    
asked
2 answers
0

Hi Kurt,

yes you can do this , we have done that in past as well where approvers gets added in run time dynamically.

You just have to maintain all association data like target user, assignee and all by yourself and change its status  on complete,reject as per your need.

 

Good luck

answered
0

Hi Kurt Rosa Bian,

Thanks for sharing this request/idea.

All user tasks have to run in the context of a workflow. Adding additional UserTask objects to the system entity is not recommended and supported. Only the workflow engine should create and remove these objects.

In case you have the need to add additional tasks in a users inbox pls add these in a separate entity and use e.g. OQL views to create an combined inbox (process and single tasks).

In case there is a lot of interest in single-stand-alone tasks we can consider to support this in the future.

answered