Package org.camunda.bpm.example.invoice
Class InvoiceProcessApplication
- java.lang.Object
-
- org.camunda.bpm.application.AbstractProcessApplication
-
- org.camunda.bpm.application.impl.ServletProcessApplication
-
- org.camunda.bpm.example.invoice.InvoiceProcessApplication
-
- All Implemented Interfaces:
java.util.EventListener,javax.servlet.ServletContextListener,ProcessApplicationInterface
public class InvoiceProcessApplication extends ServletProcessApplication
Process Application exposing this application's resources the process engine.
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.application.impl.ServletProcessApplication
processApplicationClassloader, reference, servletContext, servletContextName, servletContextPath
-
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
-
Constructor Summary
Constructors Constructor Description InvoiceProcessApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDeployment(java.lang.String processArchiveName, ProcessEngine processEngine, java.lang.ClassLoader classLoader)voidcreateDeployment(java.lang.String processArchiveName, DeploymentBuilder deploymentBuilder)Override this method in order to programmatically add resources to the deployment created by this process application.protected booleanisProcessDeployed(RepositoryService repositoryService, java.lang.String key)voidstartFirstProcess(ProcessEngine processEngine)In a @PostDeploy Hook you can interact with the process engine and access the processes the application has deployed.-
Methods inherited from class org.camunda.bpm.application.impl.ServletProcessApplication
autodetectProcessApplicationName, contextDestroyed, contextInitialized, getProcessApplicationClassloader, getProperties, getReference, getServletContext, initProcessApplicationClassloader
-
Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication
deploy, execute, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationScriptEnvironment, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeploy
-
-
-
-
Method Detail
-
startFirstProcess
public void startFirstProcess(ProcessEngine processEngine)
In a @PostDeploy Hook you can interact with the process engine and access the processes the application has deployed.
-
createDeployment
public void createDeployment(java.lang.String processArchiveName, DeploymentBuilder deploymentBuilder)Description copied from interface:ProcessApplicationInterfaceOverride this method in order to programmatically add resources to the deployment created by this process application.
This method is invoked at deployment time once for each process archive deployed by this process application.
NOTE: this method must NOT call the
DeploymentBuilder.deploy()method.- Specified by:
createDeploymentin interfaceProcessApplicationInterface- Overrides:
createDeploymentin classAbstractProcessApplication- Parameters:
processArchiveName- the name of the processArchive which is currently being deployed.deploymentBuilder- theDeploymentBuilderused to construct the deployment.
-
createDeployment
public void createDeployment(java.lang.String processArchiveName, ProcessEngine processEngine, java.lang.ClassLoader classLoader)
-
isProcessDeployed
protected boolean isProcessDeployed(RepositoryService repositoryService, java.lang.String key)
-
-