Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to APIM admin console (https://<Server Host>:9443/carbon) and select Browse under Resources.
    Image RemovedImage Added
  2. 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 of SubscriptionCreation executor:

    Code Block
    languagehtml/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>
  3. 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 the execute() and complete() 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.

...