As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
List<Execution> executions = runtimeService.createExecutionQuery() .signalEventSubscriptionName(signalName) .list();
List<Execution> executions = runtimeService.createExecutionQuery() .signalEventSubscriptionName(signalName) .processInstanceId(processInstanceId) .list();
<br> .setProperty("processesWithVar").groovy("return exchange.context.registry.lookupByName('runtimeService').createExecutionQuery().variableValueEquals('messageDiscriminator', exchange.properties['discriminator']).list().collect({ex -> ex.processInstanceId})")<br> .log("list of process ids with discriminator= '${property.processesWithVar}'")<br> .setProperty("processesWithMessageSubscription").groovy("return exchange.context.registry.lookupByName('runtimeService').createExecutionQuery().messageEventSubscriptionName('someEvent').list().collect({ex -> ex.processInstanceId})")<br> .log("list of process ids with subscription = '${property.processesWithMessageSubscription}'")<br> .setProperty("processIdList").groovy("return exchange.properties['processesWithMessageSubscription'].intersect(exchange.properties['processesWithVar'])")<br> .log("(intersection) property processIdList = '${property.processIdList}'")<br>
<br> .setProperty("processIdList").groovy("return exchange.context.registry.lookupByName('runtimeService').createExecutionQuery().messageEventSubscriptionName('someEvent').variableValueEquals('messageDiscriminator', exchange.properties['discriminator']).list().collect({ex -> ex.processInstanceId})")<br>