A HIM service tree contains a taxonomy of microservice declarations.
The tree structure is used to create a sets of microservices.
Such a set is named Service, or Service Group for larger sets where a set of Service Groups would then form a Service,
see the figure below, or the example service tree.
Figure 1. HIM service tree structure
A microservice is in HIM defined by a procedure signature as shown below:
(output1,..outputN) microServiceName(input1,..inputM)
where
HIM only specifies the data defining the above procedure signature, it does not specify details of how a call is made, such as how it is serialized, etc. This is expected to be defined in an interface specification that uses HIM.
The general structure of how a microservice is represented in a HIM tree is shown in the figure below.
Figure 2. HIM microservice tree structure
procedure.iostruct that must have the names ‘Input’ and ‘Output’, respectively.property or symlink.Any Input/Output nodes, and their associated children, are only present if the procedure has at least one parameter of the respective Input/Output.
If a service manages multiple instances of a resource then each of these resource interfaces needs to be separately represented in the tree in order for input and output data to be concurrently available. This can be realized by applying the ‘instances’ directive in the procedure node vspec declaration. The Input and Output node declarations of the procedure will then become instantiated in the same manner as when the directive is used for the VehicleData information type, see the figure below where an instance directive ‘instances: Resource[1, N]’ is used as example.
Figure 3. HIM multiplexed microservice tree structure
A microservice may have a significant temporal duration from it is started and until it completes. It may therefore be desirable that the state of the microservice can be observed, as e. g. it may be the case that an ongoing microservice execution does not allow new microservice actuations to be started.
Service response or event messages shall therefore contain a parameter called Status, which shall support at least the following states:
The rules for how a microservice shall update the state value follows below:
If there is a need for microservice specific error codes then these should be defined as another output parameter. A microservice may include in other output parameters that carry information about its execution state.