What do you want to achieve, can you explain your scenario?
You can always create ad-hoc tasks, and in some way link it with the process, but it will not appear in the process diagram, because it's an ad-hoc task.
I understand about creating ad hoc task, but how do we in some way link it with the process?
You can store the process instance ID inside the task data and then query that information.
If I do it that way. will the NodeInstanceLog table get updated too?
Because at the end of the day, the manager would like to see what are the nodes or what are the activities involved in the process from start to finish.
NO! those are two different things. The ad-hoc task is not a node inside your process. If your manager wants to see how many task were completed at the end of the day, you can just query the humant ask services for that information. You don't need your NodeInstanceLog for that.
Thanks Mauricio Salatino for reply, Where I can find the examples of ad-hoc tasks.
I have scenario where I got 2 tasks in my process.
1) Review Task.
2) Approve/Reject Task.
Now when the process reaches the Task 2 which is (Approve/Reject)
A] Rejection Condition
a) Now this Approve/Reject task gets rejected at this particular moment.
b) The new task should be created and assigned to users or group.
c) When this newly created task gets completed.
d) The Flow should come back to the Approve/Reject task from where it has been rejected.
B] Approve Condition
a) If the Approve/Reject task is approved then the task should be completed.
b) Now we don’t need to create a new task.