IWExternalTask.finish() open API clarification

I am trying to transition a task from a java application and immediately trying to find out what is the next task that got activated.

The task is a user task and I am calling finish() API with the required transition option. After that I want to find out the task in the workflow that got activated due to the transition.

I have the code working and very rarely it gives exception.

My question is, according to the implementation of the transition API, will the transition happen immediately or
interwoven internally schedules it to be transitioned at
some later point of time. If the finish() API call returns only
after a successful transition is completed, then my code
will not have a problem. But if the API returns after
scheduling a transition for the task, then it might be
meaningless to get the next active task immediately.
(May be, i might need to have some polling mechanism
in my program that waits till the transition is successfully
completed and visible through the openAPI)

Please throw some light on this,
thanks,
jas.
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs