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
3 replies
Subscribers
6 subscribers
Views
1400 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi Everybody, we are encountering an issue with process models exposed as web se
felixl973
over 10 years ago
Hi Everybody, we are encountering an issue with process models exposed as web services. We notice that for process variables that are not parameters, the default values we assign them are not being used when the process is initiated by web service request.
If we initiate the process within Appian with a process launcher our default values are assigned as expected. It is only when launching the process through web service that we notice our default values are not being assigned.
The simplest work around is to have a script node to assign our default values at the start of the process.
We are currently using Appian v7.6...
OriginalPostID-119461
OriginalPostID-119461
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
What kind of default values are you assigning? Are they expressions? (expressions are anything that starts with the = sign)
If they do start with =, do they really need to start with =? If they are primitive values then remove the = and try again (e.g. TestValue instead of ="TestValue" and 8 instead of =8)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
felixl973
over 10 years ago
We are using an integer constant for the assignment. If we switch to a hard coded in the default assignment, then I see the value updated as expected. But we would prefer to use a constant.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
It seems the feature of evaluating expressions in default values is not compatible with the mechanism to start processes published as web services. You can make all your default values non-expressions by removing the = for those where you can and move the ones that really need expressions to a script task.
The reference number for this behavior to be changed and let the expressions evaluate is AN-55333.
Eduardo Fuentes
Appian Technical Support
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel