3 Replies Latest reply on Nov 28, 2006 5:12 PM by kukeltje

    Process Definition Creation APIs

    leobaz2

      Are there any public APIs for jBPM where I can programmatically create and run a process definition without the process definition being written to jPDL.

      I want to simply have my code create a definition and run it.

      Regards,
      Barry

        • 1. Re: Process Definition Creation APIs
          kukeltje

          Yes, although I think your definition of public differs from mine here. The JbpmContext is normally the api to direct the engine. But you can use the ProcessDefinition object and all related objects to create one and deploy it. You could also have your code generate an xml document. The latter is probably easier.

          • 2. Re: Process Definition Creation APIs
            leobaz2

            Thanks, using the ProcessDefinition object will work for me. However, why would it be easier to create the xml document? I would hoping to just pass the ProcessDefinition object itself to something.

            • 3. Re: Process Definition Creation APIs
              kukeltje

              passing the ProcessDefinition will work.... and it was just my opinion that it would be easier to create the xml document. No special reason to do that, or it migh be that if it is stored, it can be looked up, changed and redeployed again. But if you feel comfortable using the PD, then go ahead.