4 Replies Latest reply on Jul 7, 2008 10:58 AM by Ronald van Kuijk

    Why is a ProcessInstance not the same as an Execution

    Thomas Diesler Master

      Relates to

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138615
      http://jbpm.dyndns.org/jbpmwiki/index.php?title=JBPM3PublicAPI

      The ProcessDefinition is the static definition of a process. An Execution is a specific execution of a process.

      There is however the notion of ProcessDefinition plus an associated set of meta data. For example an organization has a defined process for 'Order Processing' However, Order Processing is slightly different per region (i.e. different regional managers)

      It would be incorrect to force a duplication of the ProcessDefinition per region. Instead we introduce the notion of ProcessInstance that can be configured through additional metadata

      pim.createProcessInstance(pd, "apac.properties");