95
Points
Questions
4
Answers
15
-
So, as you expected it does not work. The error is:
No signature of method: java.lang.String.getStates() is applicable for argument types: (com.agile.api.StatusConstants) values: [3:TYPE_RELEASED]
Possible solutions: getBytes(), getBytes(java.lang.String), getBytes(java.nio.charset.Charset), getClass(), getChars()The Event trigger is Change Status and it is triggered by the Acknowledge button.
- 4517 views
- 15 answers
- 0 votes
-
- 4517 views
- 15 answers
- 0 votes
-
- 4517 views
- 15 answers
- 0 votes
-
- 4517 views
- 15 answers
- 0 votes
-
Arif, thanks a lot for answer this!
I think my problem is different. I need a groovy which will change the Workflow to cancel or released depeding on the value of a change attribute.
For example: If the value of attribute x = accepted than, after the event trigger, workflow status should change to released. If the value of attribute x = denied than the workflow status should change to Canceled.
I could make it almost work using setAttributebyValue but it not work since the workflow status cannot be change in this way since there is no permission to change. I think I need to use something like changeStatus(Released), but I do not know how.Could you please help me?
Thanks in advance!
- 4517 views
- 15 answers
- 0 votes