Class BPMService

java.lang.Object
com.skava.oms.service.BPMService

@Component public class BPMService extends Object
This class BPMService will define the BPM service flow for each collection
Author:
karthikeyan.b02 This class have deployBPM,getDataSource methods.
  • Field Details

  • Constructor Details

    • BPMService

      public BPMService()
  • Method Details

    • init

      @EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
      Initialize DocumentBuilderFactory
    • deployBPM

      public void deployBPM(long collectionId, CollectionProperties collectionProperty)
      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

      public Collection deployBpmForCollection(Collection collection)
      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

      public static org.springframework.core.io.Resource getResource(String path)

      getResource.

      This method used to get the json data file as classpath resource using path of the json file.
      Parameters:
      path - a String object.
      Returns:
      a Resource object.
    • isBPMAvailable

      public static boolean isBPMAvailable(String bpmName)
      Parameters:
      bpmName - Indicates the bpm name
      Returns:
      Returns the boolean value.