Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6752

Timer job (@expire) is not persisted if jbpm-flow is in dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.63.0.Final
    • core engine
    • None
    • 2022 Week 11-13 (from Mar 14)
    • NEW
    • NEW

    Description

      If jbpm-flow is in a dependency (e.g. kie-spring can bring jbpm-flow), drools timer job is not persisted because TimerService.timerJobFactoryManager can be overwritten by ProcessMarshallerFactoryServiceImpl -> ProcessRuntimeImpl constructor during ProtobufMarshaller.marshall

      https://github.com/kiegroup/jbpm/blob/7.62.0.Final/jbpm-flow/src/main/java/org/jbpm/process/instance/ProcessRuntimeImpl.java#L132

      	ThreadSafeTrackableTimeJobFactoryManager(TrackableTimeJobFactoryManager).<init>(Map<Long,TimerJobInstance>) line: 42	
      	ThreadSafeTrackableTimeJobFactoryManager.<init>() line: 26	
      	ProcessRuntimeImpl.<init>(InternalWorkingMemory) line: 132	
      	ProcessRuntimeFactoryServiceImpl.newProcessRuntime(InternalWorkingMemory) line: 26	
      	ProcessRuntimeFactoryServiceImpl.newProcessRuntime(InternalWorkingMemory) line: 23	
      	ProcessRuntimeFactory.newProcessRuntime(StatefulKnowledgeSessionImpl) line: 39	
      	StatefulKnowledgeSessionImpl.createProcessRuntime() line: 458	
      	StatefulKnowledgeSessionImpl.getProcessRuntime() line: 469	
      	StatefulKnowledgeSessionImpl.getProcessInstances() line: 1846	
      	ProtobufProcessMarshaller.writeProcessInstances(MarshallerWriteContext) line: 66	
      	ProtobufOutputMarshaller.serializeSession(MarshallerWriteContext) line: 194	
      	ProtobufOutputMarshaller.writeSession(ProtobufMarshallerWriteContext) line: 117	
      	ProtobufMarshaller.marshall(OutputStream, KieSession, long) line: 123	
      	ProtobufMarshaller.marshall(OutputStream, KieSession) line: 107	
      	DroolsTest.serializeKieSession(KieBase, KieSession) line: 103	
      	DroolsTest.given_deserializeSession_should_expire_AlarmIsOn() line: 53	
      

      Attachments

        Activity

          People

            rhn-support-tkobayas Toshiya Kobayashi
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: