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
1 reply
Subscribers
6 subscribers
Views
1026 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi I loock for function to get if pid is alreaday closed or not yet
hichame
over 12 years ago
Hi
I loock for function to get if pid is alreaday closed or not yet
thank's in advances ...
OriginalPostID-41162
OriginalPostID-41162
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 12 years ago
If you need a flexible function to retrieve the status of any process you can build your own custom function to return the status of the process given the process ID using the ProcessExecutionService.getProcessDetails() method to retrieve the details of this instance and then use ProcessDetails.getStatus() to return the actual state of the process:
ProcessExecutionService pes = ServiceLocator.getProcessExecutionService(sc);
int processStatus = pes.getProcessDetails(processId).getStatus();
The process status is a numeric value, each number represents a status described by any of the STATEXXXX constants of ProcessSummary:
forum.appian.com/.../ProcessSummary.html
Other useful links:
forum.appian.com/.../Appian_Developer_Edition
forum.appian.com/.../Custom_Function_Plug-ins
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 12 years ago
If you need a flexible function to retrieve the status of any process you can build your own custom function to return the status of the process given the process ID using the ProcessExecutionService.getProcessDetails() method to retrieve the details of this instance and then use ProcessDetails.getStatus() to return the actual state of the process:
ProcessExecutionService pes = ServiceLocator.getProcessExecutionService(sc);
int processStatus = pes.getProcessDetails(processId).getStatus();
The process status is a numeric value, each number represents a status described by any of the STATEXXXX constants of ProcessSummary:
forum.appian.com/.../ProcessSummary.html
Other useful links:
forum.appian.com/.../Appian_Developer_Edition
forum.appian.com/.../Custom_Function_Plug-ins
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data