...
- Associating a Lifecycle to an Artifact
- Checking Associated Lifecycle Name of an Artifact
- Checking the Current State of the Lifecycle Associated with the Artifact
- Get the Checklist Item List
- Checking Checklist Item
- Checking Whether a Checklist Item is Checked
- Unchecking Checklist Item
- Get Voting Event List
- Voting for an Event
- Checking Whether the Current User Already Voted for an Event
- Unvoting for an Event, Current User Already Voted
- Get all Action List
- Invoking Actions
...
Code Block |
---|
artifact.attachLifecycle(lifecycleName); |
"lifecycleName" is the name of the Lifecycle which artifact need to associate with.
...
"checkListItemIndex" is the index of the checklist name on the checklist items list returned by the artifact. getLCCheckListItemNames () method.
Checking Whether a Checklist Item is Checked
...
"checkListItemIndex" is the index of the checklist name on the checklist items list returned by the artifact. getAllCheckListItemNames () method.
Unchecking Checklist Item
This method is used to reverse a checked check list item of the current state of the associated artifact.
...
"checkListItemIndex" is the index of the checklist name in the checklist items list returned by artifact.getAllCheckListItemNames() method.
Get Voting Event List
...
Code Block |
---|
artifact.vote(eventIndex); |
Here eventIndex is the index of the voting event in the voting events list returned by artifact. artifact.getAllVotingItems() method.
...
Code Block |
---|
boolean currentUserVoted = artifact.isVoted(eventIndex); |
"eventIndex" is the index of the voting event in the voting events list returned by artifact. artifact.getAllVotingItems() method.
Unvoting for an Event, Current User Already Voted
...
Code Block |
---|
artifact.unvote(eventIndex); |
"eventIndex" is the index of the voting event in the voting events list returned by artifact. artifact.getVotingItems() method.
...
The second method allows to parse a parameter map which can be used in transition executors.
Excerpt | ||
---|---|---|
| ||
Instructions on how to do Lifecycle transitions using the Governance API. |