Time for action –­ deploying a process using the Activiti Explorer

The Activiti Explorer provides a tab for deploying processes. To deploy a process into the Activiti Explorer, we have to generate a .bar file for the process from Eclipse. In order to do this, perform the following steps:

  1. To generate a .bar file, open the laptop human process example in Eclipse.
  2. Your project should be opened in the Package Explorer view; only then will you be able to create a .bar file.
  3. In Package Explorer, right-click on the project and select the Create deployment artifacts option.
  4. There should now be a .bar file in the deployment folder (it is named laptopOrderHumanProcess.bar in the following example screenshot):
    Time for action –­ deploying a process using the Activiti Explorer
  5. Now, to upload the .bar file in the Activiti Explorer, log in as the admin user, browse to the Manage tab, and select upload new under the Deployments menu.
  6. The upload new option will pop up a window in which we can upload the .bar file by using either the Choose a file or Drop a file here option, as shown in the following screenshot:
    Time for action –­ deploying a process using the Activiti Explorer
  7. Once the process file is successfully uploaded, it will be deployed into the Activiti Explorer and we can start the process from the Deployed process menu in the Processes tab.

What just happened?

In this section, we saw how to generate a .bar file from Eclipse and have also deployed a .bar file into the Activiti Explorer. So, now we can deploy the process into the Explorer.

Have a go hero

Having gone through the chapter, feel free to attempt the following tasks:

  • Configure Activiti with any other database that you are using
  • Assign a task to a particular group instead of only one user
  • Execute a process and check each table in the Activiti database

Pop quiz – the Activiti Explorer

Q1. Which user can access the Admin tab?

  1. A guest user
  2. A normal user
  3. Whoever is part of the admin user group

Q2. How can you monitor the current process graphically?

  1. Using the Model workspace tab
  2. Using the My instances tab
  3. Using the Active processes tab

Q3. What is the extension of the file that is used for deployment?

  1. .jar
  2. .bar
  3. .zip

Q4. Which file is used to configure the database in Activiti?

  1. Web.xml
  2. db.properties
  3. activiti-standalone-context.xml

Q5. Where is the Historical task available?

  1. The Inbox tab
  2. The My Tasks tab
  3. The Archived tab
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset