Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Associating a Lifecycle to an Artifact
  2. Checking Associated Lifecycle Name of an Artifact
  3. Checking the Current State of the Lifecycle Associated with the Artifact
  4. Get the Checklist Item List
  5. Checking Checklist Item
  6. Checking Whether a Checklist Item is Checked
  7. Unchecking Checklist Item
  8. Get Voting Event List
  9. Voting for an Event
  10. Checking Whether the Current User Already Voted for an Event
  11. Unvoting for an Event, Current User Already Voted
  12. Get all Action List
  13. 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
hiddentrue

Instructions on how to do Lifecycle transitions using the Governance API.