use of io.camunda.zeebe.engine.processing.deployment.model.element.ExecutableCallActivity in project zeebe by zeebe-io.
the class CallActivityTransformer method transform.
@Override
public void transform(final CallActivity element, final TransformContext context) {
final ExecutableProcess process = context.getCurrentProcess();
final ExecutableCallActivity callActivity = process.getElementById(element.getId(), ExecutableCallActivity.class);
transformProcessId(element, callActivity, context.getExpressionLanguage());
}
use of io.camunda.zeebe.engine.processing.deployment.model.element.ExecutableCallActivity in project zeebe by zeebe-io.
the class BpmnStateTransitionBehavior method getParentProcessScope.
private ExecutableCallActivity getParentProcessScope(final BpmnElementContext callActivityContext, final BpmnElementContext childContext) {
final var processDefinitionKey = callActivityContext.getProcessDefinitionKey();
final var elementId = callActivityContext.getElementId();
return stateBehavior.getProcess(processDefinitionKey).map(DeployedProcess::getProcess).map(process -> process.getElementById(elementId, BpmnElementType.CALL_ACTIVITY, ExecutableCallActivity.class)).orElseThrow(() -> new BpmnProcessingException(childContext, String.format(NO_PROCESS_FOUND_MESSAGE, processDefinitionKey)));
}
use of io.camunda.zeebe.engine.processing.deployment.model.element.ExecutableCallActivity in project zeebe by camunda-cloud.
the class CallActivityTransformer method transform.
@Override
public void transform(final CallActivity element, final TransformContext context) {
final ExecutableProcess process = context.getCurrentProcess();
final ExecutableCallActivity callActivity = process.getElementById(element.getId(), ExecutableCallActivity.class);
transformProcessId(element, callActivity, context.getExpressionLanguage());
}
use of io.camunda.zeebe.engine.processing.deployment.model.element.ExecutableCallActivity in project zeebe by camunda-cloud.
the class BpmnStateTransitionBehavior method getParentProcessScope.
private ExecutableCallActivity getParentProcessScope(final BpmnElementContext callActivityContext, final BpmnElementContext childContext) {
final var processDefinitionKey = callActivityContext.getProcessDefinitionKey();
final var elementId = callActivityContext.getElementId();
return stateBehavior.getProcess(processDefinitionKey).map(DeployedProcess::getProcess).map(process -> process.getElementById(elementId, BpmnElementType.CALL_ACTIVITY, ExecutableCallActivity.class)).orElseThrow(() -> new BpmnProcessingException(childContext, String.format(NO_PROCESS_FOUND_MESSAGE, processDefinitionKey)));
}
use of io.camunda.zeebe.engine.processing.deployment.model.element.ExecutableCallActivity in project zeebe by camunda.
the class CallActivityTransformer method transform.
@Override
public void transform(final CallActivity element, final TransformContext context) {
final ExecutableProcess process = context.getCurrentProcess();
final ExecutableCallActivity callActivity = process.getElementById(element.getId(), ExecutableCallActivity.class);
transformProcessId(element, callActivity, context.getExpressionLanguage());
}
Aggregations