Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to know if a task is running using JAVA API

Avatar

Level 3

I'm using this quickstart to create a process that returns all the current running tasks. If you look at the code, if the current task status == 100 then it is a completed task. What is the constant for a running task?

I've looked here     but it doesn't list a constant the equates to still running. Is this the correct way to go about this or should I be trying something different?

1 Accepted Solution

Avatar

Correct answer by
Level 4

This link should take you to the TaskStatusTypes javadocs.

http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/idp/taskmanager/dsc/clie...

There are 4 status' for active tasks, CREATED (1) and CREATED_SAVED (2) for active tasks that start processes, where the process instance isn't created until this task is completed, and ASSIGNED (3) and ASSIGNED_SAVED (4) for active tasks associated with a process instance.  The _SAVED status means that an incremental save of the data was done such as Save To Drafts from Workspace.

Non-active tasks are COMPLETED (100), DEADLINED (101) and TERMINATED (102), note that all are >= to the COMPLETED status, so conversely, any status < COMPLETED is active. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

This link should take you to the TaskStatusTypes javadocs.

http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/idp/taskmanager/dsc/clie...

There are 4 status' for active tasks, CREATED (1) and CREATED_SAVED (2) for active tasks that start processes, where the process instance isn't created until this task is completed, and ASSIGNED (3) and ASSIGNED_SAVED (4) for active tasks associated with a process instance.  The _SAVED status means that an incremental save of the data was done such as Save To Drafts from Workspace.

Non-active tasks are COMPLETED (100), DEADLINED (101) and TERMINATED (102), note that all are >= to the COMPLETED status, so conversely, any status < COMPLETED is active.