How to get Process Model Name and Application Name From Process Instance ID

Hi All, Is there any way to capture Process Model Name and the Application Name based on process Instance ID?

OriginalPostID-228313

OriginalPostID-228313

  Discussion posts and replies are publicly visible

Parents
  • I would suggest the same approach as given by Sikhivahan for finding the process model name from process Id.

    Coming to the other point - that is finding the Application name from the process instance Id, there is no direct and clear solution.
    Note that a process instance can belong to only process model ID. So, there is one-to-one mapping between process instance ID and process model name(or process model ID).

    But, a process model can be included in multiple applications. So, indirectly a process instance can belong to one or more applications (if the process model for that process instance is a part of multiple applications). This is possible because developers can reuse same process model in multiple applications.

    Hence the mapping between process instance ID and application is not one-to-one. So, it is not straightforward to find the application name from process instance ID. First you need to find the process model from process ID. Then find the applications which contain that process model.
Reply
  • I would suggest the same approach as given by Sikhivahan for finding the process model name from process Id.

    Coming to the other point - that is finding the Application name from the process instance Id, there is no direct and clear solution.
    Note that a process instance can belong to only process model ID. So, there is one-to-one mapping between process instance ID and process model name(or process model ID).

    But, a process model can be included in multiple applications. So, indirectly a process instance can belong to one or more applications (if the process model for that process instance is a part of multiple applications). This is possible because developers can reuse same process model in multiple applications.

    Hence the mapping between process instance ID and application is not one-to-one. So, it is not straightforward to find the application name from process instance ID. First you need to find the process model from process ID. Then find the applications which contain that process model.
Children
No Data