...
- Log in to APIM admin console (
https://<Server Host>:9443/carbon
) and select Browse under Resources. Go to
/_system/governance/apimgt/applicationdata/workflow-extensions.xml
resource and edit the file as follows to disable the Simple Workflow Executor and enable WS Workflow Executor ofSubscriptionCreation
executor:Code Block language html/xml <!--SubscriptionCreation executor="org.wso2.carbon.apimgt.impl.workflow.SubscriptionCreationSimpleWorkflowExecutor"/--> <SubscriptionCreation executor="org.wso2.carbon.apimgt.impl.workflow.SubscriptionCreationWSWorkflowExecutor"> <Property name="serviceEndpoint">https://localhost:9444/services/SubscriptionCreationWorkflow</Property> <Property name="username">admin</Property> <Property name="password">admin</Property> <Property name="callbackURL">https://localhost:8243/services/WorkflowCallbackService</Property> </SubscriptionCreation>
Specify the service endpoint where the workflow engine is hosted and the credentials required to access the said service via basic authentication (i.e., username/password based authentication).
Info To write your own logic for executing the BPEL workflow,
- Extend the
WorkflowExecutor
class and override theexecute()
andcomplete()
methods - Restart server to apply the changes
By default, API Manager comes with,
- A sample BPEL and Human Task for subscription-creation workflow
- A Jaggery-based Web application named
workflow-admin
to provide a GUI for pending Human Tasks that are created by the default BPELs and Human Tasks.
To browse the application creation workflows that are based on BPEL and Human Task, go to
<AM_HOME>/business-processes/subscription-creation
. Also see <AM_HOME>/business-processes/readme.txt for more information.- Extend the
...