Pimics
Fill up missing chapters
Pimics Rules are an engine that allows to define transformations of data from features into other entites. Rules are not processed immediately after the change, but on the background so there can be a small delay.
Define rules
- Choose the Search icon, enter Rule List and then choose the related link.
- On the Rules page, choose the New action.
- Select features that will be used as a source for the rule by creating a new line in Condition.
- Specify field Condition Type
- Define parameters for the condition with the action Parameters
Available rules
After installation there is a predefined set of Conditions or Actions. If there is no type that you need to use still there is a possibility to extend the list.
Conditions
Type | Description | Parameters |
---|---|---|
All | Action will be run for all features | - |
Product Feature Filter | Filter features by a condition defined in parameters | Table No.: 70114120, Field No.: 1001, Value: INT100029..INT100030 ⇒ Action will be run for all features that have Number in range INT100029..INT100030 |
Actions
Type | Description | Parameters Example |
---|---|---|
Convert Units | ToFeaturesID: INT100032 =? It use settings in Unit Conversion to convert a value from source feature into feature INT100032 | |
Update Field | Copy a value of feature to the selected field on Item, Categories, Documents | Type: Item, Field No.: 2, Skip Validation: No ⇒ will update field Description when value is defined on item's feature |
Run rules
Typicall scenario is that we run rules periodically on background. There is also possibility to run it manually from Product Features.
Run rules on background
To process rules we use Job Queues, so you can run it every minute, hour or define your own period. Job (codeunit 70113878 "PIMX Rule Job") check the modification timestemp and if there is achnge since the last success run it starts all rules for the product feature.
Setup Rule Job
Please follow Microsoft documentation Use job queues to schedule tasks.
- Search for Job Queue Entries and select related link
- Create a new entry
- In Object Type to Run select Codeunit
- In Object ID to Run fill up 70113878
- There is no addition available configuration so keep Parameter String empty
- For the rest of the configuration follow Use job queues to schedule tasks.
- In the end select Set Status to Ready
Customizations
It is possible to extend rules in conditions and actions.
You need to implement interfaces:
interface "PIMX Rule Condition Type"
andenum 70113796 "PIMX Pimcs Rule Condition Type"
interface "PIMX Rule Action Type"
andenum 70113797 "PIMX Rule Action Type"
Please follow documentation and instructions available in the source code.