Exception coming

how to resolve this exception::
" org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class"?

Hi jauhari,

we will need much more information to help you than only one line of the stack trace.

Please post information about your running system.
Like which application server/ servlet container do you use and which Camunda version. What are you doing. What is the expected behavior and what goes wrong. Also post the complete stack trace.

Best regards,
Chris

Hi @jauhari

I reiterate what @Zelldon says. How could anyone ever help you with the information that you provided. I am normally not a forum post police kind of guy… but this one takes the cake.

At any rate it looks like your app server is failing to start… there will likely be a “caused by” there in logs… please post full stack trace…

Might be a class path issue.

@joechromo;@zelldon
sorry for inconvenience.
here is log:

02-Feb-2017 13:06:58.586 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class cts.pmoss.InitClass
 org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application IDCS-Generation' => 'Deployment of process archive 'IDCS-Generation': ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:131)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionWhileReadingStream(EngineUtilLogger.java:99)
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:51)
	at org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep.performOperationStep(DeployProcessArchiveStep.java:89)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 18 more
Caused by: java.lang.NullPointerException
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:44)
	... 20 more

02-Feb-2017 13:07:26.270 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Feb-2017 13:07:26.270 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
02-Feb-2017 13:29:21.078 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class cts.pmoss.InitClass
 org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application IDCS-Generation' => 'Deployment of process archive 'IDCS-Generation': ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:131)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionWhileReadingStream(EngineUtilLogger.java:99)
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:51)
	at org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep.performOperationStep(DeployProcessArchiveStep.java:89)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 18 more
Caused by: java.lang.NullPointerException
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:44)
	... 20 more

02-Feb-2017 13:29:49.457 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Feb-2017 13:29:49.457 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
02-Feb-2017 14:47:08.167 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class cts.pmoss.InitClass
 org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application IDCS-Generation' => 'Deployment of process archive 'IDCS-Generation': ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:131)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionWhileReadingStream(EngineUtilLogger.java:99)
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:51)
	at org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep.performOperationStep(DeployProcessArchiveStep.java:89)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 18 more
Caused by: java.lang.NullPointerException
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:44)
	... 20 more

02-Feb-2017 14:47:39.707 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Feb-2017 14:47:39.707 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
02-Feb-2017 14:54:38.416 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class cts.pmoss.InitClass
 org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application IDCS-Generation' => 'Deployment of process archive 'IDCS-Generation': ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:312)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:132)
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:156)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:212)
	at org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.deployProcessApplication(RuntimeContainerDelegateImpl.java:95)
	at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:59)
	at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:131)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09011 Exception while reading IDCS6b as input stream: null
	at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionWhileReadingStream(EngineUtilLogger.java:99)
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:51)
	at org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep.performOperationStep(DeployProcessArchiveStep.java:89)
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
	... 18 more
Caused by: java.lang.NullPointerException
	at org.camunda.bpm.engine.impl.util.IoUtil.readInputStream(IoUtil.java:44)
	... 20 more

02-Feb-2017 14:55:09.971 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Feb-2017 14:55:09.971 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()

and the init class is:

package cts.pmoss;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;

import org.camunda.bpm.BpmPlatform;
import org.camunda.bpm.application.PostDeploy;
import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.application.ProcessApplicationDeploymentInfo;
import org.camunda.bpm.application.ProcessApplicationInfo;
import org.camunda.bpm.application.impl.ServletProcessApplication;
import org.camunda.bpm.container.RuntimeContainerDelegate;
import org.camunda.bpm.engine.ProcessEngine;
import org.camunda.bpm.engine.RepositoryService;
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.migration.MigrationPlan;
import org.camunda.bpm.engine.repository.ProcessDefinition;
import org.camunda.bpm.engine.repository.ProcessDefinitionQuery;



@ProcessApplication("IDCS-Generation")
public class InitClass extends ServletProcessApplication{


private final static Logger LOG = Logger.getLogger(InitClass.class.getName());
	
	
	
	@PostDeploy
	  public void migrateProcessInstances(ProcessApplicationInfo processApplicationInfo) {
		RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate.INSTANCE.get();
		runtimeContainerDelegate.registerProcessEngine(null);
   	 

       Map<String, List<ProcessApplicationDeploymentInfo>> deploymentsByEngine = organizeDeploymentsByEngine(processApplicationInfo);
       
       for (String engineName : deploymentsByEngine.keySet()) {
       	try{
                 ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getProcessEngine(engineName);

                 List<ProcessDefinition> latestIncludedProcessDefinitions =
                     collectLatestProcessDefinitions(processEngine, deploymentsByEngine.get(engineName));

                 for (ProcessDefinition latestDefinition : latestIncludedProcessDefinitions) {
               	  try{
	                        ProcessDefinition previousDefinition = getPreviousVersion(processEngine, latestDefinition);                       
	                        
	                        migrateInstances(processEngine, previousDefinition, latestDefinition);
               	  }catch(Exception ex){
                   	LOG.info("Process Instance Error " + ex);
               	  }
                   }
       	}catch(Exception e){
       		LOG.info("Error at Process engine " + e);
       	}
       }
     }
	
	 protected Map<String, List<ProcessApplicationDeploymentInfo>> organizeDeploymentsByEngine(ProcessApplicationInfo processApplicationInfo) {
		    Map<String, List<ProcessApplicationDeploymentInfo>> deploymentsByEngine = new HashMap<String, List<ProcessApplicationDeploymentInfo>>();

		    for (ProcessApplicationDeploymentInfo deployment : processApplicationInfo.getDeploymentInfo()) {
		      addToMapOfLists(deploymentsByEngine, deployment.getProcessEngineName(), deployment);
		    }

		    return deploymentsByEngine;
		  }
	 protected List<ProcessDefinition> collectLatestProcessDefinitions(ProcessEngine processEngine, List<ProcessApplicationDeploymentInfo> list) {
		    List<ProcessDefinition> latestDefinitions = processEngine
		      .getRepositoryService()
		      .createProcessDefinitionQuery()
		      .latestVersion()
		      .list();

		    Set<String> deploymentIds = collectDeploymentIds(list);

		    List<ProcessDefinition> latestDefinitionsForApplication = new ArrayList<ProcessDefinition>();

		    for (ProcessDefinition latestDefinition : latestDefinitions) {
		      if (deploymentIds.contains(latestDefinition.getDeploymentId())) {
		        latestDefinitionsForApplication.add(latestDefinition);
		      }
		    }

		    return latestDefinitionsForApplication;
		  }
	 
	  protected Set<String> collectDeploymentIds(List<ProcessApplicationDeploymentInfo> deploymentInfos) {
		    Set<String> deploymentIds = new HashSet<String>();

		    for (ProcessApplicationDeploymentInfo deploymentInfo : deploymentInfos) {
		      deploymentIds.add(deploymentInfo.getDeploymentId());
		    }

		    return deploymentIds;
		  }
	  
	  protected ProcessDefinition getPreviousVersion(ProcessEngine processEngine, ProcessDefinition processDefinition) {

		    if (processDefinition.getVersion() <= 1) {
		      return null;
		    }

		    RepositoryService repositoryService = processEngine.getRepositoryService();

		    ProcessDefinitionQuery processDefinitionQuery = repositoryService
		      .createProcessDefinitionQuery()
		      .processDefinitionKey(processDefinition.getKey())
		      .processDefinitionVersion(processDefinition.getVersion() - 1);

		    if (processDefinition.getTenantId() != null) {
		      processDefinitionQuery.tenantIdIn(processDefinition.getTenantId());
		    }
		    else {
		      processDefinitionQuery.withoutTenantId();
		    }
		    

		    return processDefinitionQuery.singleResult();
		  }
	  
	  protected void migrateInstances(ProcessEngine processEngine,
		      ProcessDefinition sourceDefinition,
		      ProcessDefinition targetDefinition) {

		    RuntimeService runtimeService = processEngine.getRuntimeService();

		    MigrationPlan migrationPlan = runtimeService
		      .createMigrationPlan(sourceDefinition.getId(), targetDefinition.getId())
		      .mapEqualActivities()
		      .build();
		    
		  //   System.out.println(" Migration plan " + migrationPlan); 

		    LOG.info("Migrating all process instances from " + sourceDefinition.getId() + " to " + targetDefinition.getId());

		    if(runtimeService.createProcessInstanceQuery().processDefinitionId(sourceDefinition.getId())!=null){
		    runtimeService
		      .newMigration(migrationPlan)
		      .processInstanceQuery(runtimeService.createProcessInstanceQuery().processDefinitionId(sourceDefinition.getId()))
		      .execute();
	  }
		    // .executeAsync(); //for asynchronous execution in a batch (useful for large numbers of instances)
		  	}


		  protected static <S, T> void addToMapOfLists(Map<S, List<T>> map, S key, T value) {
		    List<T> list = map.get(key);
		    if (list == null) {
		      list = new ArrayList<T>();
		      map.put(key, list);
		    }
		    list.add(value);
		  }
	
	
}

Hi @jauhari,

what does IDCS6b refer to?

Cheers,
Askar

@aakhmerov
that is my bpm file name.

@jauhari, could you post your project structure here or my be upload your code to github and provide a link to it?

Cheers,
Askar

@aakhmerov
yes sure i am doing that. But before that is this correct in the above init class
“runtimeContainerDelegate.registerProcessEngine(null);”

@jauhari, no this is not correct, there is ensure not null in the implementation of that method, so it will throw an exception, but your current exception occurs earlier I think, you are not ever getting to PostDeploy, since your bpmn is not found.

Cheers,
Askar

yes agree…
can you plz tell me how can I share my project structure here?
In git due to my organization restriction I am not able to share project structure

@jauhari, you could run tree command and save output in text file, which can be attached in your answer here.

Cheers,
Askar

Alternative for windows: http://stackoverflow.com/questions/9518646/tree-view-of-a-directory-folder-in-windows

yes got it…thanks @aakhmerov

here is project structure attached .tree.txt (3.4 KB)

@jauhari, could you please also attach your processes.xml?

Cheers,
Askar

here it is:

<?xml version="1.0" encoding="UTF-8" ?>

<process-application
    xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <process-archive name="IDCS-Generation">
   <process-engine>default</process-engine>
    <resource>IDCS6b</resource>
   

    <properties>
     <!--<property name="databaseSchema">COGNI_</property>-->
     <!--  <property name="databaseTablePrefix">COGNI_</property>-->
      <!--<property name="databaseSchemaUpdate">false</property>-->
      <property name="isDeleteUponUndeploy">false</property>
      <property name="isScanForProcessDefinitions">true</property>
      
      
     
    </properties>
    
    
  </process-archive>

</process-application>

@jauhari,

could you please change <resource>IDCS6b</resource> to <resource>IDCS6b.bpmn</resource> ?

Cheers,
Askar

yes sure…let me try it

thanks @aakhmerov…thank you so much…I was struggling from last 2-3 days due to this error…
now I am able to start the process but form is not loading. I am using external form…attaching log file.

Jauharilocalhost.2017-02-03.log (5.3 KB)
catalina.2017-02-03.log (32.2 KB)
localhost_access_log.2017-02-03.txt (23.4 KB)

Hey @jauhari,

could you explain a bit more detail what exactly you try to do and when error is happening? Does it happen when you open tasklist?

Cheers,
Askar

@aakhmerov
Hi,
This is the error I am getting:
An error happend while submitting the task form :
Cannot submit task form a48de43e-ea04-11e6-bc13-a41f72555cee: condition expression returns non-Boolean: result has class java.lang.String and not java.lang.Boolean

Here is my bpm file:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.2.1">
  <bpmn:collaboration id="Collaboration_1keta0b">
    <bpmn:participant id="Participant_0sbjzus" processRef="Process_1" />
  </bpmn:collaboration>
  <bpmn:process id="Process_1" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1" name="start">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="StartIDCS6" label="StartIDCS6" type="string" defaultValue="true" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:outgoing>SequenceFlow_1hp6lih</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:serviceTask id="Task_0ec7j7h" name="Auto Process Order" camunda:class="cts.pmoss.AutoProcessOrder">
      <bpmn:incoming>SequenceFlow_127vd3j</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1s56ry8</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DataOutputAssociation_07ox4t1">
        <bpmn:targetRef>DataStoreReference_01elwz0</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:serviceTask>
    <bpmn:userTask id="Task_1lj15hc" name="Operator Validate" camunda:assignee="${currentUser()}" camunda:dueDate="${dateTime().plusDays(2).toDate()}">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="operatorValidation" label="IsOrderValidated?" type="boolean" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_1s56ry8</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1sgq02c</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="Task_07g7vuy" name="Data Exp" camunda:assignee="${currentUser()}" camunda:dueDate="${dateTime().plusDays(2).toDate()}">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="dataExp" label="isdataExp?" type="boolean" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_16w2kob</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0ppcndy</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="Task_0gfzoma" name="Delete Order" camunda:assignee="${currentUser()}" camunda:dueDate="${dateTime().plusDays(2).toDate()}">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="deleteOrder" label="isdeleteOrder?" type="boolean" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_0ppcndy</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0pied91</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:userTask id="Task_1h3ym3b" name="QC Validate" camunda:assignee="${currentUser()}" camunda:dueDate="${dateTime().plusDays(2).toDate()}">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="qcValidate" label="isqcValidated?" type="boolean" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_1sgq02c</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_16w2kob</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:endEvent id="EndEvent_08pv3y2" name="end">
      <bpmn:incoming>SequenceFlow_0pied91</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:exclusiveGateway id="ExclusiveGateway_1jwjp6w">
      <bpmn:incoming>SequenceFlow_0dr1sjn</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_127vd3j</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_1q19iy9</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:task id="Task_0v9fno2" name="wait for some time">
      <bpmn:incoming>SequenceFlow_1q19iy9</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1wmfgci</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="EndEvent_0r3suz3">
      <bpmn:incoming>SequenceFlow_1wmfgci</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:dataStoreReference id="DataStoreReference_01elwz0" name="Engine/External DB" />
    <bpmn:userTask id="Task_0tqpfjx" name="create order" camunda:assignee="${currentUser()}" camunda:dueDate="${dateTime().plusDays(2).toDate()}">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="createOrder" label="IsOrderCreated?" type="boolean" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_1hp6lih</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0dr1sjn</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:boundaryEvent id="BoundaryEvent_0hsol7d" attachedToRef="Task_0v9fno2">
      <bpmn:timerEventDefinition>
        <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT2M</bpmn:timeDuration>
      </bpmn:timerEventDefinition>
    </bpmn:boundaryEvent>
    <bpmn:sequenceFlow id="SequenceFlow_1hp6lih" sourceRef="StartEvent_1" targetRef="Task_0tqpfjx" />
    <bpmn:sequenceFlow id="SequenceFlow_127vd3j" name="YES" sourceRef="ExclusiveGateway_1jwjp6w" targetRef="Task_0ec7j7h">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#(createOrder==true)</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="SequenceFlow_1s56ry8" sourceRef="Task_0ec7j7h" targetRef="Task_1lj15hc" />
    <bpmn:sequenceFlow id="SequenceFlow_1sgq02c" sourceRef="Task_1lj15hc" targetRef="Task_1h3ym3b" />
    <bpmn:sequenceFlow id="SequenceFlow_16w2kob" sourceRef="Task_1h3ym3b" targetRef="Task_07g7vuy" />
    <bpmn:sequenceFlow id="SequenceFlow_0ppcndy" sourceRef="Task_07g7vuy" targetRef="Task_0gfzoma" />
    <bpmn:sequenceFlow id="SequenceFlow_0pied91" sourceRef="Task_0gfzoma" targetRef="EndEvent_08pv3y2" />
    <bpmn:sequenceFlow id="SequenceFlow_0dr1sjn" sourceRef="Task_0tqpfjx" targetRef="ExclusiveGateway_1jwjp6w" />
    <bpmn:sequenceFlow id="SequenceFlow_1q19iy9" name="NO" sourceRef="ExclusiveGateway_1jwjp6w" targetRef="Task_0v9fno2">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#(createOrder!=true)</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="SequenceFlow_1wmfgci" sourceRef="Task_0v9fno2" targetRef="EndEvent_0r3suz3" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1keta0b">
      <bpmndi:BPMNShape id="Participant_0sbjzus_di" bpmnElement="Participant_0sbjzus">
        <dc:Bounds x="-516" y="-269" width="1612" height="422" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="-412" y="-63" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-439" y="-27" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_08pv3y2_di" bpmnElement="EndEvent_08pv3y2">
        <dc:Bounds x="971" y="-63" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="944" y="-87" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ServiceTask_1u2vrbu_di" bpmnElement="Task_0ec7j7h">
        <dc:Bounds x="38" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_1hcw57i_di" bpmnElement="Task_1lj15hc">
        <dc:Bounds x="248" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_1hbusvv_di" bpmnElement="Task_1h3ym3b">
        <dc:Bounds x="420" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_0dxqx7u_di" bpmnElement="Task_07g7vuy">
        <dc:Bounds x="614" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_1tvhpkh_di" bpmnElement="Task_0gfzoma">
        <dc:Bounds x="783" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DataStoreReference_01elwz0_di" bpmnElement="DataStoreReference_01elwz0">
        <dc:Bounds x="64" y="-164" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="44" y="-190" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1hp6lih_di" bpmnElement="SequenceFlow_1hp6lih">
        <di:waypoint xsi:type="dc:Point" x="-376" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="-341" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-403.5" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0dr1sjn_di" bpmnElement="SequenceFlow_0dr1sjn">
        <di:waypoint xsi:type="dc:Point" x="-241" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="-153" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-242" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataOutputAssociation_07ox4t1_di" bpmnElement="DataOutputAssociation_07ox4t1">
        <di:waypoint xsi:type="dc:Point" x="89" y="-85" />
        <di:waypoint xsi:type="dc:Point" x="90" y="-114" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1sgq02c_di" bpmnElement="SequenceFlow_1sgq02c">
        <di:waypoint xsi:type="dc:Point" x="348" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="420" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="339" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_16w2kob_di" bpmnElement="SequenceFlow_16w2kob">
        <di:waypoint xsi:type="dc:Point" x="520" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="614" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="522" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0h9n79y_di" bpmnElement="Task_0tqpfjx">
        <dc:Bounds x="-341" y="-85" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1s56ry8_di" bpmnElement="SequenceFlow_1s56ry8">
        <di:waypoint xsi:type="dc:Point" x="138" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="248" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="148" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0ppcndy_di" bpmnElement="SequenceFlow_0ppcndy">
        <di:waypoint xsi:type="dc:Point" x="714" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="783" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="704" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0pied91_di" bpmnElement="SequenceFlow_0pied91">
        <di:waypoint xsi:type="dc:Point" x="883" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="971" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="882" y="-70" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ExclusiveGateway_1jwjp6w_di" bpmnElement="ExclusiveGateway_1jwjp6w" isMarkerVisible="true">
        <dc:Bounds x="-153" y="-70" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-173" y="-20" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_127vd3j_di" bpmnElement="SequenceFlow_127vd3j">
        <di:waypoint xsi:type="dc:Point" x="-103" y="-45" />
        <di:waypoint xsi:type="dc:Point" x="38" y="-45" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-98" y="-63" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_0v9fno2_di" bpmnElement="Task_0v9fno2">
        <dc:Bounds x="-88" y="-228" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1q19iy9_di" bpmnElement="SequenceFlow_1q19iy9">
        <di:waypoint xsi:type="dc:Point" x="-128" y="-70" />
        <di:waypoint xsi:type="dc:Point" x="-128" y="-188" />
        <di:waypoint xsi:type="dc:Point" x="-88" y="-188" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-158" y="-139" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0r3suz3_di" bpmnElement="EndEvent_0r3suz3">
        <dc:Bounds x="240" y="-206" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="213" y="-170" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1wmfgci_di" bpmnElement="SequenceFlow_1wmfgci">
        <di:waypoint xsi:type="dc:Point" x="12" y="-188" />
        <di:waypoint xsi:type="dc:Point" x="111" y="-188" />
        <di:waypoint xsi:type="dc:Point" x="111" y="-188" />
        <di:waypoint xsi:type="dc:Point" x="240" y="-188" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="81" y="-198" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="BoundaryEvent_1je2vny_di" bpmnElement="BoundaryEvent_0hsol7d">
        <dc:Bounds x="-78" y="-246" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="-105" y="-210" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

The expression you use to evaluate the path leaving your gateway is incorrect.
Assuming the variable createOrder is boolean…

it is: #(createOrder!=true) but it should be #{!createOrder}
Similarly the other exit of the gateway should be #{createOrder}

I also noticed that you haven’t given a task type the wait for some time task, that might be an issue