Use Custom Process Metadata¶
This guide will walk you through the steps to create a process model that generates custom metadata using a metadata extraction path and how to query that metadata using process instance filtering.
Step 1: Define the Process Model¶
Create a New Process Model:
Navigate to the “Processes” section in SpiffArena.
Click on “Add a process model” and fill in the required fields as described elsewhere.
In the process model form, specify the metadata extraction path.
This path is used to extract data from your process instances for quick access in searches and perspectives.
Example: If you have a script task that sets
great_color = "blue", set both the extraction key and extraction path togreat_color.
Save the process model.
Step 2: Start the Process¶
Initiate the Process:
Navigate to the “Home” section and click on “Start New” to initiate the process.
Select the process model you created and start a new instance.
Monitor Process Execution:
Track the progress of the process instance to ensure it completes successfully and actually generates appropriate task data, such as
great_coloror whatever specific data you are looking for.
Step 3: Query Custom Metadata¶
Navigate to Process Instances:
Go to the “Process Instances” section to view all instances.
Expose a column for your Custom Metadata attribute:
Use the plus icon to add a column.
Select the metadata field you defined in the extraction path and click Save.
You should now be able to see your custom metadata as a new column in the process instance report.
View Filtered Results:
You can also filter process instances based on your custom column using the same column options.
By following these steps, you can create a process model that generates custom metadata and efficiently query that metadata using process instance filtering.
Adding Metadata Fields to Existing Process Instances¶
If you need to add new metadata extraction paths to an existing process model that already has instances, you may want to ensure that the new metadata is applied to all existing instances. For information on how to automatically backfill metadata for existing process instances, see Use Process Metadata Backfill.