A second, very powerful, thing we can do with selected Objects (instances) is to configure Processes which accept them as input parameters.
To illustrate this suppose we had the App Structure defined as shown below, where there is a Process called "Visit" at the point in the App Structure as shown below.
At that point in the App, the user has selected a patient ( (+patient) shows after the name of the Process), so the Visit Process can define and use an input of type "patient".
In this tutorial, we will look at how to define a Process which takes an object as input.
Processes with Input Objects
So far in this tutorial we have defined one Process: a Registration Process with which the user can register new patients.
In this part, we will define a second Process. This time it will be a Process that can accept a patient as an input.
That is, in Logiak, one can define Processes that "know about" specific selected object instances and can reason with that information.
In our sample "Community Health" App, one thing we might want to do is to define a Visit Process - to choreograph what steps the health worker takes at each visit with a patient.
By defining the Process with a patient object (instance) as input, the Process knows who we are visiting and the dialogue can adapt according to the patient's status.
Let us go ahead and add a Visit Process.
Within the Project, go the Processes tab and select +Process to add a new Process. Let us call it "Visit".
Adding an Input Object to a Process
Now, within the Process, let us start configuring the Process by stating that this Process take an input object of type patient.
Read how to add an input object.