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.JakartaServletProcessApplication
org.camunda.bpm.example.invoice.InvoiceProcessApplication
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener,ProcessApplicationInterface
Process Application exposing this application's resources the process engine.
-
Field Summary
Fields inherited from class org.camunda.bpm.application.impl.JakartaServletProcessApplication
servletContextFields inherited from class org.camunda.bpm.application.impl.AbstractServletProcessApplication
processApplicationClassloader, reference, servletContextName, servletContextPathFields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDeployment(String processArchiveName, DeploymentBuilder deploymentBuilder) Override this method in order to programmatically add resources to the deployment created by this process application.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.JakartaServletProcessApplication
contextDestroyed, contextInitialized, getServletContext, initProcessApplicationClassloaderMethods inherited from class org.camunda.bpm.application.impl.AbstractServletProcessApplication
autodetectProcessApplicationName, getProcessApplicationClassloader, getProperties, getReferenceMethods 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: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.
-