Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9366

Allow environment variables during WIH registering.

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.44.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      At present we only allow this variables resolution:

      ksession
      taskService
      runtimeManager
      kieContainer
      classLoader
      

      It would be nice to be able to set some items coming the environment such as ip on a broker, kafka or any other.
      The idea would be to add the map env with the system properties.

           <work-item-handler>
                  <resolver>mvel</resolver>
                  <identifier>new org.jbpm.process.workitem.kafka.KafkaWorkItemHandler(env['kafka_server'], "client_jbpm", "org.apache.kafka.common.serialization.StringSerializer", "org.apache.kafka.common.serialization.StringSerializer")</identifier>
                  <parameters/>
                  <name>KafkaPublishMessages</name>
              </work-item-handler>
          </work-item-handlers>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                elguardian Enrique González Martínez
                Reporter:
                elguardian Enrique González Martínez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: