Define a Workflow

Prerequisites

For a workflow instance update, download the command line interface. See Download and Install the Cloud Foundry Command Line Interface.

For more information on the update itself, see Updating Service Instances.

Procedure

  1. Model a workflow service as described in Developing Applications with Workflow Service.
  2. Update the workflow service instance with necessary scopes.

    To set these scopes, either install a new service interface with all required scopes or update an existing service interface. To do the update, you have to use the command line interface as there’s no user interface available.

  3. Save the following JSON file that specifies all necessary scopes.
    {  
        "authorities": [
            "WORKFLOW_INSTANCE_START",
            "WORKFLOW_DEFINITION_GET",
            "WORKFLOW_INSTANCE_GET",
            "WORKFLOW_INSTANCES_UPDATE",
            "WORKFLOW_INSTANCE_CANCEL",
            "WORKFLOW_INSTANCE_GET_ERROR_MESSAGES",
            "WORKFLOW_INSTANCE_GET_CONTEXT",
            "WORKFLOW_INSTANCE_GET_EXECUTION_LOGS",
            "MESSAGE_SEND",
            "TASK_GET"
        ]
    }