What defines an Action in a workflow?

I'm using Energy EAP (build #1356) and would like to know more about Actions. What are they exactly? How are they defined? How can I customize them?

In this article, a state-machine rule is defined as including an Action:

http://confluence.jetbrains.com/display/YTD3/Workflow+Overview#WorkflowOverview-WorkflowRules

For example:

on Fix [always] do {<define statements>} transit to Fixed

where Fix is the action.

In the workflow editor, AutoComplete shows me a few actions to choose from, but I would like to know where they come from and how I can alter them.

3 comments
Comment actions Permalink

You can type any action you like. Completion shows you actions you've already used for other transitions.

0
Comment actions Permalink

If I can type anything I like, then what does the action refer to? Is it not connected to any value in the project? What is its purpose for even being there if it has no relevance to something that already exists?

0
Comment actions Permalink

It is just an identifier that is shown as possible value when you change field that has associated statemachine. For instance, you have a project with a field State with values [Open, In Progress, Fixed, Verified]. And you define a statemachine that handles this field:

statemachine state for field State {

  initial state Open {

    on start work[always] do {<define statements>} transit to In Progress

    on mark as obsolete[always] do {<define statements>} transit to Fixed

  }

   

  state In Progress {

    on stop work[always] do {<define statements>} transit to Open

    on mark as fixed[always] do {<define statements>} transit to Fixed

  }

   

  state Fixed {

    on reopen[always] do {<define statements>} transit to Open

    on verify[always] do {<define statements>} transit to Verified

  }

   

  state Verified {

  }

}

Check this video to see how attached statemachine affects the field behavior.

0

Please sign in to leave a comment.