Package org.camunda.bpm.example.invoice
Class InvoiceProcessApplication
java.lang.Object
org.camunda.bpm.application.AbstractProcessApplication
org.camunda.bpm.application.impl.AbstractServletProcessApplication
org.camunda.bpm.application.impl.ServletProcessApplication
org.camunda.bpm.example.invoice.InvoiceProcessApplication
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
,ProcessApplicationInterface
Process Application exposing this application's resources the process engine.
-
Field Summary
Fields inherited from class org.camunda.bpm.application.impl.ServletProcessApplication
servletContext
Fields inherited from class org.camunda.bpm.application.impl.AbstractServletProcessApplication
processApplicationClassloader, reference, servletContextName, servletContextPath
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createDeployment
(String processArchiveName, DeploymentBuilder deploymentBuilder) Override this method in order to programmatically add resources to the deployment created by this process application.void
startFirstProcess
(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
contextDestroyed, contextInitialized, getServletContext, initProcessApplicationClassloader
Methods inherited from class org.camunda.bpm.application.impl.AbstractServletProcessApplication
autodetectProcessApplicationName, getProcessApplicationClassloader, getProperties, getReference
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
-
Constructor Details
-
InvoiceProcessApplication
public InvoiceProcessApplication()
-
-
Method Details
-
startFirstProcess
In a @PostDeploy Hook you can interact with the process engine and access the processes the application has deployed. -
createDeployment
Description copied from interface:ProcessApplicationInterface
Override 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:
createDeployment
in interfaceProcessApplicationInterface
- Overrides:
createDeployment
in classAbstractProcessApplication
- Parameters:
processArchiveName
- the name of the processArchive which is currently being deployed.deploymentBuilder
- theDeploymentBuilder
used to construct the deployment.
-