Package com.skava.oms.service
Class BPMService
java.lang.Object
com.skava.oms.service.BPMService
This class BPMService will define the BPM service flow for each collection
- Author:
- karthikeyan.b02 This class have deployBPM,getDataSource methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deployBPM
(long collectionId, CollectionProperties collectionProperty) Deploy dynamic BPM provided in the collection propertydeployBpmForCollection
(Collection collection) This method used to get the bpm data file as classpath resource and deploy it in camunda.static org.springframework.core.io.Resource
getResource
(String path) getResource.void
init()
Initialize DocumentBuilderFactorystatic boolean
isBPMAvailable
(String bpmName)
-
Field Details
-
omsProperties
To get oms defaut properties -
DEFAULT_BPM
- See Also:
-
-
Constructor Details
-
BPMService
public BPMService()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Initialize DocumentBuilderFactory -
deployBPM
Deploy dynamic BPM provided in the collection property- Parameters:
collectionId
- - to set tenant id for bpm service.collectionProperty
- - to read bpm xml data. Debug logger has been added to this method.
-
deployBpmForCollection
This method used to get the bpm data file as classpath resource and deploy it in camunda.- Parameters:
collection
- - collection for which the bpm to be deployed- Returns:
- the collection Debug logger has been added to this method.
-
getResource
getResource.
This method used to get the json data file as classpath resource using path of the json file.- Parameters:
path
- aString
object.- Returns:
- a
Resource
object.
-
isBPMAvailable
- Parameters:
bpmName
- Indicates the bpm name- Returns:
- Returns the boolean value.
-