Creating custom process apps
Before you begin
Set up
Set up your IBM Process Mining instance for process apps in a Linux non-containerized environment. For more information, see Basic setup.
Permissions
Ensure you have the mandatory permissions to access and create process apps that a System Administrator must assign to you. For more information, see Process app permissions.
Horizontal scaling
Custom process apps are not compatible with Horizontal Scaling (High availability) in IBM Process Mining. To use a process app, you must configure it to bypass the Horizontal Scaling (High availability) default configuration. For more information, see Configuring custom process apps to bypass high availability.
Python logic file
To create a custom process app, you must create and upload a Python logic file. For more information, see Creating Python logic files for process apps.
Procedure
You must complete the following sets of steps to create a custom process app in IBM Process Mining:
Creating a summary card
-
On the Home page, click the Start from a process application tile.
-
Click Create process app.
-
In the Summary card section, complete the following steps:
- Enter the name of your process app. You cannot use the name of an already existing process app.
- Optional: Provide a brief description of your process app.
- Select whether your app should be closed source or open source in order to set
the permissions for the process app users:
- Switch the toggle to Open source if you want to give the Use, View, Export, and Duplicate permissions to the process app users.
- Switch the toggle to Closed source if you want to give only the Use and Export permissions to the process app users. For more information about process app permissions, see Types of users and permissions in custom process apps
-
Optional: Customize your process app's summary card to make it more characteristic and distinguishable from other process apps:
- Choose an icon.
- Add some feature highlights.
-
Click Next to go to the Upload your process app logic section.
Uploading a logic file
-
Upload your Python logic file. To learn more about how the structure of the file should look, see Creating Python logic files for process apps.
-
Optional: If you want your users to be able to schedule data fetching (incremental data updates) for the project they create from this process app, set the switch to Incremental updates to data can be scheduled. For this to work, your Python logic file must include a schedulable function for incremental updates to event log data. For more information, see Optional: Setting a schedule for data refresh options.
If the switch is set to Incremental updates to data cannot be scheduled, you can only schedule the process with replacement updates. However, you can change the schedule configuration later on in the Process app section of Data & Settings. To see how to accesss this section, see Process app. To learn more about scheduling options, see Scheduling process data fetching in process apps.
-
Click Next to go to the Define user inputs section.
Optional: Defining user inputs
You can enable the users to input the data into your process app. This gives them the flexibility to select the data that they want to analyze and transform into a valid data source for a process mining project. You can configure the user input options in the following ways:
-
If you want your users to upload data in a file, complete the following steps:
- Set the Is your user required to upload a file with their own data? to Required.
- Click Next to go to the Provide user guidance section.
-
If you want your users to define specific parameters which the Python script uses to generate a data source according to their business requirement, complete the following steps:
- Click Create custom input. You can add multiple custom input fields.
- Choose whether this user input should be mandatory or optional.
- Define the Label field, Variable name
field and Input type fields that the
users of your process app will see. In the Variable name
field, insert the name of the variable that the user must
enter based on the logic of the Python script. For example,
Enter the Password. - Optional: To instruct your users how to upload their data, add a helper text.
- Click Next to go to the Provide user guidance section.
Example: This is how users of a process app see custom user inputs. In this example, the creator used a checkbox and a textarea input types with some helper text.
Optional: Providing user guidance
You can create user guides for your custom process app users by
using text, links, or a JSON template.
Guidance with text
Write a step-by-step guide or a description of how to use your app.
Links to documentation and other resources
Add links to the outside documentation or tutorials.
Guidance with template
Create a user guide for your process app with a
JSON template.
Before you begin
Create a .zip file that contains one or both of the
following:
-
If in the Defining user inputs step you required that your users upload a data file when they use your process app, provide a Python script that users can use to extract raw data from its source. Include also some technical documentation or instructions that describe how this Python script can be used to extract data from external applications.
-
If in the Defining user inputs step you created custom inputs for your users, provide technical documentation that describes how users can configure the relevant event log parameters. Users need it when they use the process app to create a project by means of connecting directly to the origin of the raw data through a REST API.
Procedure
-
Click the Guidance with template button.
-
In the Upload connector/extractor file section, upload your
.zipfile. -
Click View JSON template and copy and paste the template into the text field.
-
Update the
.JSONtemplate with the guide details that will allow users to understand how the process app can be used to create a project.The
.JSONtemplate looks like this:{ "title": "foo", "subtitle": "foo", "notification": { "title": "foo", "text": "foo" }, "content": "foo", "content_switcher": { "show_label": "foo", "hide_label": "foo" }, "download_button": { "label": "Download foo file" }, "help_links": { "Using the app": "https://example.com" }, "faq_title": "FAQs", "FAQs": { "How? ": "Answer how ", "What? ": "Answer what ", "Which?": "Answer which " } }The
.JSONyou create will turn into a documentation page similar to the following layout:
Table 1: Guidelines on editing the
.JSONtemplate.Value How to use it notificationUse to highlight important notes or warnings regarding documentation. contentUse to add a brief description of the steps required to access the documentation file or links. This description appears under the How to gather your data heading. content_switcherUse to provide users with two options. Example: - Set the
show_labelvalue toI already have my data. If the user selects this option, they only see the title, subtitle, and notification section in the UI of your process app. - Set the
hide_labelvalue toHelp me gather my data. If the user selects this option, they see the title, subtitle and notification section, as well as theHow to gather your datasection with the steps defined by you in thecontentvalue, the Download butoon, and the FAQs section.
download_buttonUse to guide users to download the file you uploaded. help_linksUse to provide users with links to other useful resources. The links appear under the Support documentation heading. FAQsUse to provide users with answers to frequently asked questions about the steps. - Set the
- Click Next to go to the Process settings section.
Setting up a project
In the Process setting section, you must upload a project back up file or duplicate settings from an already existing project. You do this so that you are able to generate a new project with the process app by using the mapped data columns, project settings, filters, and dashboards from the project backup file.
To upload a project backup file, complete the following steps:
-
Select the Upload process backup file option.
-
Upload the project backup file in the
.idpformat. -
Click Save.
To duplicate the settings of an existing project, complete the following steps:
-
Select the Duplicate settings from a process option.
-
Select a project from the Find a process dropdown.
-
Click Save.