2 Replies Latest reply on Aug 6, 2009 3:39 AM by kukeltje

    [BPMN2] advanced pvm/parsing question

    camunda

       

      Ronald wrote:

      > ActivityResources have a resourceRef to resources, just like
      > sequenceflows have to activities, at least in bpmn. There are two
      > differences. Sequenceflows need to be added to activities which can be
      > retrieved with findActivirty and that the level they are on the xml
      > file is different. I've been looking in detail at the jPDL parser,
      > but maybe because of tiredness, I do not seem to get a grip on how to to do this.
      > push, pop, unresolvedTransitions like, I've seen it al but cannot find out.
      >
      > If you have a tip, I can continue with this tomorrow and probably do
      > the same for dataObjects.


      Tom wrote:

      BpmnParser should first parse the resources and build up an internal datastructure for it. So that resourceRefs can look em up there.


        • 1. Re: [BPMN2] advanced pvm/parsing question
          camunda

           

          Ronald wrote:

          The hard part is getting the resource related to the activityResource


          Couldn’t you just remember them in the parser as a list? Maybe you don’t need them after parsing any more if everything is configured?

          Otherwise, maybe the ProcessDefinition has place for this kind of thing?

          • 2. Re: [BPMN2] advanced pvm/parsing question
            kukeltje

            [quote[Couldn't you just remember them in the parser as a list? Maybe you don't need them after parsing any more if everything is configured? /quote]

            I already did that and it works

            Otherwise, maybe the ProcessDefinition has place for this kind of thing?


            It has, you implemented it ;-)