Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
7 subscribers
Views
2707 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Finding out whether process model instance is completed from java code
surendrab
over 8 years ago
Hello All,
I am writing a java plugin and this plugins starts a process instance but I am unable to get information on whether this process instance is completed or not. I am using Process controller concludeProcess() method but this is throwing exception and not reliable to get that information. Any help on pointers would be appreciated
OriginalPostID-234691
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 8 years ago
Starting a process is an asynchronous procedure. Only if the process has reached a terminate event or all end events, the process will complete.
To check the status of a process:
int processStatus = pes.getProcessDetails(processId).getStatus();
if(processStatus == ProcessDetails.STATE_COMPLETED){
....
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 8 years ago
Starting a process is an asynchronous procedure. Only if the process has reached a terminate event or all end events, the process will complete.
To check the status of a process:
int processStatus = pes.getProcessDetails(processId).getStatus();
if(processStatus == ProcessDetails.STATE_COMPLETED){
....
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data