Diagram Retrieval

This chapter describes the possibilities Infinity Process Platform offers for diagram retrieval.

Retrieving Diagrams

Infinity Process Platform allows you to retrieve

via a simple servlet-based interface. You may easily generate image files with contents like the following:

Execution

If not configured differently in your web.xml deployment descriptors, the servlet for diagram retrieval can be accessed with:

 http://<server>:<port>/<context-root>/eclipse/servlet/DiagramServlet

e.g.:

 http://localhost:8080/carnot/diagrams/eclipse/servlet/DiagramServlet

There are several parameters which can be provided with the query string of this URL. Distinguish between mandatory and optional parameters.

Mandatory Parameters Description Optional Parameters (additionally)
activityInstanceOid The activityInstanceOid is used internally to retrieve the processInstanceOid. (It is then not necessary to provide an optional activityId for the processInstanceOid, because it will be deduced by the given activityInstanceOid.)
  • diagramId
  • encoding
  • modelSource
processInstanceOid The diagram shows completed, active and pending activities of this process instance in different colors. The information about the process instance state are retrieved from the corresponding audit trail database.
  • activityId
  • diagramId
  • encoding
  • modelSource
processId The selected diagram is displayed without any particular coloring. This option is intended to be used for reports on the process model.
  • diagramId
  • encoding
  • modelSource

Whereby the optional parameters have the following effects:

For example the URL:

http://localhost:8080/carnot/diagrams/servlet/DiagramServlet?processInstanceOid=12&encoding=image/png

will retrieve a PNG file with the default diagram of the process definition of process instance 12 with coloring for the state of this process instance.