Search in sources :

Example 1 with StartFormDataImpl

use of org.camunda.bpm.engine.impl.form.StartFormDataImpl in project camunda-bpm-platform by camunda.

the class MyStartFormHandler method createStartFormData.

public StartFormData createStartFormData(ProcessDefinitionEntity processDefinition) {
    ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
    IdentityService identityService = processEngineConfiguration.getIdentityService();
    RuntimeService runtimeService = processEngineConfiguration.getRuntimeService();
    logAuthentication(identityService);
    logInstancesCount(runtimeService);
    StartFormDataImpl result = new StartFormDataImpl();
    result.setProcessDefinition(processDefinition);
    return result;
}
Also used : IdentityService(org.camunda.bpm.engine.IdentityService) RuntimeService(org.camunda.bpm.engine.RuntimeService) ProcessEngineConfigurationImpl(org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl) StartFormDataImpl(org.camunda.bpm.engine.impl.form.StartFormDataImpl)

Example 2 with StartFormDataImpl

use of org.camunda.bpm.engine.impl.form.StartFormDataImpl in project camunda-bpm-platform by camunda.

the class DefaultStartFormHandler method createStartFormData.

public StartFormData createStartFormData(ProcessDefinitionEntity processDefinition) {
    StartFormDataImpl startFormData = new StartFormDataImpl();
    if (formKey != null) {
        startFormData.setFormKey(formKey.getExpressionText());
    }
    startFormData.setDeploymentId(deploymentId);
    startFormData.setProcessDefinition(processDefinition);
    initializeFormProperties(startFormData, null);
    initializeFormFields(startFormData, null);
    return startFormData;
}
Also used : StartFormDataImpl(org.camunda.bpm.engine.impl.form.StartFormDataImpl)

Aggregations

StartFormDataImpl (org.camunda.bpm.engine.impl.form.StartFormDataImpl)2 IdentityService (org.camunda.bpm.engine.IdentityService)1 RuntimeService (org.camunda.bpm.engine.RuntimeService)1 ProcessEngineConfigurationImpl (org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl)1