BPF Stage Tracking
BPF Stage Tracking allows users to quickly see the amount of time that a record has spent in its current state of the BPF.
Feature Overview
BPF Stage Tracking allows users to quickly see the amount of time that a record has spent in its current state of the BPF.
This has been expanded to keep track of status changes as well. the stage tracking entity has a type to indicate what it is tracking.
Design Details
The BPF Stage Tracking feature consists of the following components:
- BPF Stage Duration (klevr_bpfstageduration) entity, which has:
- A lookup field to every target entity with BPF which needs to be tracked, for example:
This allows to create a related BPF Stage Duration records.
- Actual Start (klevr_ActualStart), Actual End (klevr_ActualEnd) fields (type Date and Time) which keep enter and exit time of each BPF stage.
- Stage Duration (min) (klevr_StageDuration) calculated field which calculates difference in minutes between Actual Start and Actual End.
- Components of Klevr BPF Stage Tracking Feature solution. It is a set of Workflows for each BPF entity which is tracked, for example:
Adding a plugin step
First of all, you have to ensure that the regarding field on the BPF stage tracking entity has a relationship to your target entity. Use the klevr_polylookupeditor web resource to add new relationships to this poly lookup field, and make sure you add the relationships to your solution.
Run the following command on your command line. Make sure you have the PAC CLI tools for po
pac tool prt
This will open the plugin registration tool. Connect to your environment.
To track a BPF
Find the Klevr.Feature.BPFStageTracking plugin and add 2 steps. A create for the BPF entity, and an update for the BPF entity.
For the steps:
- Specify the message as create and update for the second one.
- Specify the BPF entity (not your target entity) as the primary entity.
- select 'statuscode, activestageid, activestagestartedon' for the filtering attributes
- Ensure you select postoperation, syncronous for both steps.
- On the update, add a pre-image as well, include all attributes, and make sure the name and alias is 'Image' (case sensitive, without the quotes)
To track status changes
Find the Klevr.Feature.StatusTracking plugin and add 2 steps. A create for your target entity, and an update for your target entity.
For the steps:
- Specify the message as create and update for the second one.
- Specify the Target entity as the primary entity.
- select 'statuscode' for the filtering attributes
- Ensure you select postoperation, asyncronous for both steps.
- For both steps, Add a post-image as well, name and alias to be 'Image' (case sensitive, no quotes). The only required attribute is statuscode for these images.
Remember to add these plugin steps to your solution. Do not add the assembly, it is already part of the utilities solution. the default name for the steps would be something like Klevr.Feature.Plugins.StatusTracking: Create of MyEntity
Last updated on