{
  "description": "aaaaa",
  "update-author": "liuxu",
  "updated-date": 144444,
  "initial-actions": [
    {
      "id": 0,
      "name": "initial-action",
      "results": [
        {
          "step": 1,
          "status": "Underway"
        }
      ]
    }
  ],
  "steps": [
    {
      "id": 1,
      "name": "step1",
      "pre-functions": [
        {
          "name": "App\\Workflow\\Util@preStepFunc1"
        },
        {
          "name": "App\\Workflow\\Util@preStepFunc2"
        }
      ],
      "post-functions": [
        {
          "name": "App\\Workflow\\Util@postStepFunc1"
        },
        {
          "name": "App\\Workflow\\Util@postStepFunc2"
        }
      ],
      "actions": [
        {
          "id": 1,
          "name": "action1",
          "restrict-to": {
            "conditions": {
              "type": "or",
              "list": [
                {
                  "name": "App\\Workflow\\Util@trueCondition1",
                  "args": {
                    "owner": "aaa"
                  }
                },
                {
                  "name": "App\\Workflow\\Util@falseCondition2",
                  "args": {
                    "owner": "aaa"
                  }
                }
              ]
            }
          },
          "pre-functions": [
            {
              "name": "App\\Workflow\\Util@preActionFunc1"
            },
            {
              "name": "App\\Workflow\\Util@preActionFunc2"
            }
          ],
          "post-functions": [
            {
              "name": "App\\Workflow\\Util@postActionFunc1"
            },
            {
              "name": "App\\Workflow\\Util@postActionFunc2"
            }
          ],
          "results": [
            {
              "conditions": {
                "type": "and",
                "list": [
                  {
                    "name": "App\\Workflow\\Util@trueCondition1"
                  }
                ]
              },
              "step": 2,
              "old-status": "Finished",
              "status": "Underway",
              "pre-functions": [
                {
                  "name": "App\\Workflow\\Util@preResultFunc1"
                },
                {
                  "name": "App\\Workflow\\Util@preResultFunc2"
                }
              ],
              "post-functions": [
                {
                  "name": "App\\Workflow\\Util@postResultFunc1"
                },
                {
                  "name": "App\\Workflow\\Util@postResultFunc2"
                }
              ]
            },
            {
              "step": "3",
              "old-status": "Finished",
              "status": "Underway",
              "pre-functions": [
                {
                  "name": "App\\Workflow\\Util@preResultFunc1"
                }
              ],
              "post-functions": [
                {
                  "name": "App\\Workflow\\Util@postResultFunc1"
                }
              ]
            }
          ]
        },
        {
          "id": 2,
          "name": "action2",
          "results": [
            {
              "step": "4",
              "old-status": "Finished",
              "status": "Underway"
            }
          ]
        }
      ]
    },
    {
      "id": 2,
      "name": "step2",
      "actions": [
        {
          "id": 3,
          "name": "action3",
          "results": [
            {
              "step": "3",
              "old-status": "Finished",
              "status": "Underway"
            }
          ]
        }
      ]
    },
    {
      "id": 3,
      "name": "step3",
      "actions": [
        {
          "id": 4,
          "name": "action4",
          "results": [
            {
              "step": "4",
              "old-status": "Finished",
              "status": "Underway"
            }
          ]
        },
        {
          "id": 5,
          "name": "action5",
          "results": [
            {
              "step": "1",
              "old-status": "Finished",
              "status": "Underway"
            }
          ]
        }
      ]
    }
  ]
}
