...
- Log in to the APIM management console (
https://<Server Host>:9443/carbon
) and select Browse under Resources.
Go to the
/_system/governance/apimgt/applicationdata/workflow-extensions.xml
resource, disable the Simple Workflow Executor and enable WS Workflow Executor.Code Block language html/xml <WorkFlowExtensions> .... <!-- Publisher related workflows --> <!--<APIStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIStateChangeSimpleWorkflowExecutor" />--> <APIStateChange executor="org.wso2.carbon.apimgt.impl.workflow.APIStateChangeWSWorkflowExecutor"> <Property name="processDefinitionKey">APIStateChangeApprovalProcess</Property> <Property name="stateList">Created:Publish,Published:Block</Property> </APIStateChange> .... </WorkFlowExtensions>
You have now engaged the API WS Workflow. The default configuration is set for Created to Publish and Published to Block state changes. See Advanced Configurations for information on configuring more state changes.
Log in to the API Publisher (
https://<Server Host>:9443/publisher
) and publish an API. See Create and Publish an API. A message related to the publish workflow will be displayed because the workflow is enabled for Created to Publish state change.Info Note that the Save & Publish button will be disabled until the workflow task is completed or deleted.
You can revoke the state change by clicking Delete Task in the Lifecycle tab.
- Log in to the Admin Portal (
https://<Server Host>:9443/admin
) and click API State Change to see the list of tasks awaiting approval.
Click Assign to Me to approve the task. Select Approve and click Complete to resume and complete the API state change.
...
Element name | Description |
---|---|
| Enables the Admin Portal to approve state change tasks. |
| The URL of the BPMN server. |
| User accessing the BPMN REST API. |
| Password of the user accessing the BPMN REST API. |
| The REST API invoked by the BPMN to complete the workflow. |
| The API call to generate the access token is passed to the BPMN process. Once the access token is received, it is used to call the workflow callback API. |
| Endpoint to generate OAuth application. This application is used by the BPMN process to generate the token. |
| Endpoint user. |
| Endpoint password. |
Note | ||
---|---|---|
| ||
Create a user with exclusive apim:apiworkflow scope permissions when setting a
For more details on how to create users and roles see managing users and roles. |
The configurations that can be changed by editing the /_system/governance/apimgt/applicationdata/workflow-extensions.xml
are given below.
...