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
4 subscribers
Views
3811 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Can I pass a parameter to a process model from an application action? I have a
pieterk
A Score Level 1
over 8 years ago
Can I pass a parameter to a process model from an application action? I have a generic process and I need to pass a parameter from an application action if i want to create an item, or a different parameter from a related action if I want to edit an item.
OriginalPostID-222590
OriginalPostID-222590
Discussion posts and replies are publicly visible
0
aayusha
Certified Senior Developer
over 8 years ago
Yes, it's possible.
Please follow the below steps:
1. Create the process model.
2. Configure the process variables to be passed as parameter.
3. Delete the process start form.
4. Configure PM as action & Related action.
5. Action will have all the pv as Null (integer will set to 0) as it starts and Related action will have values from the Record.
6. Now have an XOR to check the values in the pv and decide whether the PM was triggered from related action or action.
Let me know if you need more details.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 8 years ago
No, You cannot pass a parameter to a process model which has to be triggered from actions tab. You can set default values to process variables in the process model or the values has to be captured from the user.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Navajith K
over 8 years ago
@aaayusha, I believe pieterk want to pass a value for a parameter from application action if he want to create an item
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aayusha
Certified Senior Developer
over 8 years ago
@navjithh, I understand your point and yes you cannot directly pass the parameter. But once you know the process has been triggered using an 'Action' then you can set the pvs accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pieterk
A Score Level 1
over 8 years ago
Thanks for the advice. I have managed to get it to work by using default variables for the Action and by passing a parameter with the related action.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel