Search in sources :

Example 1 with FormPropertyStartContext

use of org.camunda.bpm.engine.impl.persistence.entity.util.FormPropertyStartContext in project camunda-bpm-platform by camunda.

the class ExecutionEntity method startWithFormProperties.

public void startWithFormProperties(VariableMap properties) {
    provideTenantId(properties);
    if (isProcessInstanceExecution()) {
        ActivityImpl initial = processDefinition.getInitial();
        ProcessInstanceStartContext processInstanceStartContext = getProcessInstanceStartContext();
        if (processInstanceStartContext != null) {
            initial = processInstanceStartContext.getInitial();
        }
        FormPropertyStartContext formPropertyStartContext = new FormPropertyStartContext(initial);
        formPropertyStartContext.setFormProperties(properties);
        startContext = formPropertyStartContext;
        initialize();
        initializeTimerDeclarations();
        fireHistoricProcessStartEvent();
    }
    performOperation(PvmAtomicOperation.PROCESS_START);
}
Also used : ProcessInstanceStartContext(org.camunda.bpm.engine.impl.pvm.runtime.ProcessInstanceStartContext) ActivityImpl(org.camunda.bpm.engine.impl.pvm.process.ActivityImpl) FormPropertyStartContext(org.camunda.bpm.engine.impl.persistence.entity.util.FormPropertyStartContext)

Aggregations

FormPropertyStartContext (org.camunda.bpm.engine.impl.persistence.entity.util.FormPropertyStartContext)1 ActivityImpl (org.camunda.bpm.engine.impl.pvm.process.ActivityImpl)1 ProcessInstanceStartContext (org.camunda.bpm.engine.impl.pvm.runtime.ProcessInstanceStartContext)1