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:
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
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
Constructors Constructor Description InvoiceProcessApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDeployment(java.lang.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
-
-
-
-
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: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.
-
-