Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-287

New component: OSWorkflow JBI Component

    XMLWordPrintableJSON

Details

    Description

      New component: OSWorkflow JBI Component
      I attached a first very basic approach of an OSWorkflow service engine as example.

      Compart Systemhaus GmbH is granting all remaining rights to the ASF.

      To build a service unit:
      You need to have in your SU's resources:

      • osworkflow.xml
      • workflows.xml
      • xbean.xml
      • your custom workflow xml file referenced inside workflows.xml

      Then just write Conditions, Functions, etc. as java classes or use other OSWorkflow logic as you need.

      Important to note:
      The transient vars contain some important objects for your use...

      Key - Value
      OSWorkflow.KEY_IN_MESSAGE - the received normalized "in" message which started the workflow
      OSWorkflow.KEY_EXCHANGE - the received message exchange which started the workflow
      OSWorkflow.KEY_ENDPOINT - the instance of OSWorkflowEndpoint which processes the workflow

      The message received is not answered until you do it inside the workflow. Also the processing of the message exchange / in message content as well as sending an answer has to be done from inside your workflow.

      Attachments

        1. osworkflow-example.tar
          2.21 MB
          Lars Heinemann
        2. ASF.LICENSE.NOT.GRANTED--osworkflow.diff
          96 kB
          Lars Heinemann

        Activity

          People

            lhe Lars Heinemann
            lhe Lars Heinemann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: