You can create a new process by choosing New Process in Machinery, or from the Dependents section of your object type in Ontology Manager. You will be prompted to choose one of the following setup options:
Implement a process: Choose this option if all the components of your process are in Foundry, meaning there is no external changelog. The components of a process are the Process
object type, Actions, and Automations. You may have already have some of these, otherwise you can generate them as part of the setup workflow.
Mine an existing process: Choose this option if you want to understand and monitor an external process. The main required input is a changelog dataset tracking changes of process objects over time. As Machinery is Ontology-aware, you can either provide the Process and a Process Log object types or allow Machinery to generate them for you.
Manual Setup: If you already maintain an object type that tracks changes over time, and that fulfills Machinery's specification, you can choose the manual setup. Selecting this option skips the configuration dialog, so you can directly start drawing and configure your Ontology at any time later.
Machinery currently supports a read-only view for external processes. If you also want to define Actions on the process in Foundry, the external and internal changes need to be reconciled, which Machinery will support soon. If your use case requires this today, choose the manual setup or contact Palantir Support.
When you configure object types in Machinery, you can map your properties (with their names) to the required fields.
The object type that represents entities going through the process.
This configuration is only needed for the Mine an existing process setup option. It represents your measurement of the external process. Each row in the dataset denotes a change to a process object at a given time.
True
, that object will not appear in the Ontology.A Log represents a transition from old state to new state at timestamp T. The Process Log object type is typically created and maintained by Machinery. If you choose the manual setup option, you must provide the following properties. If optional properties are missing, some of Machinery's functionality will not be available.
True
if this log is the most recent for the Process object, otherwise False
.Machinery is where you outline your process - detailing what can or should occur. You should define the following components of a process which are represented as nodes and edges on the Machinery graph:
You can use the clicking and drawing interactions to create new states and actions. Linking state and action nodes through connecting lines determines the possible state transitions. By dragging nodes on the graph, you can set their positions, or choose the auto-layout feature from the control bar.
Alternatively, once the Log object type has successfully indexed and has data, you can obtain the set of states and transitions by mining historical data. This is the most common workflow for processes backed by a changelog dataset. Choose Mine from the Actions menu.
The state IDs in Machinery are equivalent to the state values in your data. To avoid typing errors or diverge otherwise, you can back your state property by an enumeration Value Type. This will guarantee that the data in the Ontology can only assume a predefined set of values. Machinery will discover that setup and keep the process states in sync.
When mining states and transitions from historical logs, data health issues can often lead to unexpected transitions. For instance, you may notice a Patient going from in treatment into the admitted state, which is not a sound transition. By switching to the Expected Transitions mode, you can define the edges that you expect. This filter is used in the Machinery widgets to show only the relevant portion of the graph.