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

Allow environment variables during WIH registering.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.44.0.Final
    • None
    • None
    • 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>
      

      Attachments

        Activity

          People

            elguardian@gmail.com Enrique González Martínez (Inactive)
            elguardian@gmail.com Enrique González Martínez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: