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

Getting the process id out of the ejb timer column

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.62.0.Final
    • None
    • None
    • None

      This is a way to correlate process-instance-id and ejb-timer-id.

      With this in mind, customer require a way to get the process id out of the ejb timer column.

      Currently, the log file will show:

      10:22:30,901 DEBUG [org.jboss.as.ejb3.timer] (default task-5) Scheduling a single action timer [id=e83c07e3-d804-4555-8fe8-e02b58536b9f timedObjectId=kie-server.kie-server.EJBTimerScheduler auto-timer?:false persistent?:true timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@156994ad previousRun=null initialExpiration=Thu Jun 17 10:22:40 CEST 2021 intervalDuration(in milli sec)=0 nextExpiration=Thu Jun 17 10:22:40 CEST 2021 timerState=ACTIVE info=EjbTimerJob [timerJobInstance=GlobalJpaTimerJobInstance [timerServiceId=pattern-timerServiceId, getJobHandle()=EjbGlobalJobHandle [uuid=81-35-Timer # {timerIn}-1]]]] starting at 9,933 milliseconds from now
      

      and customer need to interpret the following pattern:

      [uuid=81-35-Timer #{timerIn}-1]].
      

      where uuid is created as combination of sessionId, ProcessInstanceId and timer id:

      jobname = processCtx.getSessionId() + "" + processCtx.getProcessInstanceId() + "" + processCtx.getTimer().getId();
      

      The idea is to create a table associated to the process instance id where the information stored is
      timer uuid, timer id, timer string id provided by the implementation.

              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:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: