Versions Compared

Key

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

The following scenario simulates a simple leave approval business process, in which an employee fills a form and submits the leave request to the manager and the manager approves or rejects it. The employee receives an email if the manager approves the request. Otherwise, if the manager rejects it, the employee will be able to resend the leave request by adjusting it. 

...

Note

You can download the  pre-packaged project  of this scenario and compare the artifacts in it when following the below instructions.

  • For more detailed installation instructions, see /wiki/spaces/EI6xx/pages/49612293.
  • For information on any error messages you get, see the troubleshooting tips given under /wiki/spaces/EI6xx/pages/49615315

    and download it from here.
    The path to this folder is referred to as <EI_TOOLING> throughout this tutorial.

    Tip

    Before you begin,

    • Install Oracle Java SE Development Kit (JDK) version 1.8.* and set the JAVA_HOME environment variable.
    • Download the product installer from here, and run the installer.
      Insert excerpt
      EI6xx:Installing the ProductEI6xx:
      Installing the Product
      nopaneltrue
    • Select and download the relevant WSO2 Integration Studio ZIP file depending based on your operating system from here , and then extract the ZIP file.

    Info
    Info

    Getting an error message? See the troubleshooting tips given under Installing WSO2 Integration Studio.

    Let's get started! This tutorial includes the following sections:

    ...

    1. Copy the following JAR files into the<EI_HOME>/lib directory and restart the Business Process profile server instance. 

    2. In the <EI_HOME>/wso2/business-process/conf/activiti.xml file, add the following properties under the <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> property as shown below, to enable the Gmail configurations.

      • Replace the mailServerHost and mailServerPort property values as follows:

        Code Block
        languagexml
        <property name="mailServerHost" value="smtp.gmail.com"/>
        <property name="mailServerPort" value="587"/>
      • Add the following properties:

        Code Block
        languagexml
        <property name="mailServerDefaultFrom" value="<ENTER_A_VALID_SMTP_EMAIL_ADDRESS>"/>
        <property name="mailServerUseTLS" value="true"/>
        <property name="mailServerUsername" value="<ENTER_A_VALID_SMTP_EMAIL_ADDRESS>"/>
        <property name="mailServerPassword" value="<ENTER_THE_EMAIL_PASSWORD>"/>
        Info

        If you are using Gmail to try out this scenario, you may need to enable IMAP access for Gmail. For more information, see Enable IMAP settings in Gmail . Also, if you receive an authentication error, you may have to adjust your account access settings in Gmail as well. For more information, see Allowing less secure apps to access your account .

    Deploying the artifacts

    1. For instructions on creating the deployable artifacts, see Creating the deployable archive.
    2. For instructions on deploying them, see Deploying BPMN artifacts.

    ...

    1. If you have not started the business process profile previously, start it.

      Panel
      borderColor#542989
      bgColor#ffffff
      borderWidth1
      Localtabgroup
      Localtab
      titleOn MacOS/Linux/CentOS

      Open a terminal and execute the following command:

      Code Block
      wso2ei-6.46.0-business-process
      Localtab
      titleOn Windows

      Go to  Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.46.0 Business Process. This will open a terminal and start the business process profile.

    2. Log in to the Management Console of the Business Process profile.
    3. Click Configure → Users and Roles → Add → Add New User.
    4. Enter the below details to create a user called manager and click Next.

      Tip

      Enter both the User Name and the Password as manager.


    5. In the next screen, assign the user to the admin role and click Finish.

      You view the new user you created as shown below.

    ...