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
5 replies
Subscribers
9 subscribers
Views
4110 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Get Process Status inside Process Model
Raj
over 7 years ago
Hello - Is there a way to get the process status within the process model during design? I was able to get process status in reports using process_status() function, while the same couldn't be used inside a process model. My requirement is to branch in the workflow based on process status e.g. when process status = completed, I need to send an email.
OriginalPostID-265971
Discussion posts and replies are publicly visible
0
anshuk611
over 7 years ago
Create one process report.Use Excecute Process report smart service in process model.Capture the status in a process variable.Use this variable as a decision making when you want to send out the mail.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subhankarb
over 7 years ago
Hi Rajendran ,
You could use now() function in your email node. The email node should be the last node in your process instance to execute before completion or termination of the instance.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Associate Developer
over 7 years ago
@rajendrans
1)Yes when you open up and data input tab inside which process metrics pre detrermined functions will be there. You can use that fuction and assign the value to process variable. Use XOR or AND or Send Message which ever suites your requirement to trigger the EMAIL if the process gets completed. In this Approach Exception functionality will also works
2)Create a portal report for the respected process model and use QPA() fucnction to pull up the data to check whether the process is completed or not. This way aslo triggers an email if any particular task corresponds to the process model gets completed
3)Very normal scenario. Assign a boolean value to check the process is completed
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 7 years ago
From my understanding the status of a process does not help you inside the process itself. A process is not completed as long as there is a single active node. This means you can not react on a status change inside the process instance itself.
Follow above suggestion and put a send email node at the end of your process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Raj
over 7 years ago
Thank you both. Let me try the suggestion and update
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel