Class ActivityIndexingWrapper

java.lang.Object
com.suncode.pwfl.workflow.activity.indexer.ActivityIndexingWrapper

@Component public class ActivityIndexingWrapper extends Object
Helper class to wrap functions in ActivityIndexingService
  • Constructor Details

    • ActivityIndexingWrapper

      public ActivityIndexingWrapper()
  • Method Details

    • get

      public static ActivityIndexingWrapper get()
      Returns:
      Instance of class
    • indexAsync

      public void indexAsync(String processId, String activityId)
      Calls async index function in ActivityIndexingService
      Parameters:
      processId - id of process
      activityId - id of activity
    • indexAsync

      public void indexAsync(String processId, String activityId, boolean forceSharkService)
      Calls async index function in ActivityIndexingService
      Parameters:
      processId - id of process
      activityId - id of activity
      forceSharkService - force use shark service to retrieve activity data
    • appendIndexAsync

      public void appendIndexAsync(org.enhydra.shark.api.SharkTransaction sharkTransaction, String processId, String activityId)
      Appends index function call in ActivityIndexingService to shark transaction.
      Parameters:
      processId - id of process
      activityId - id of activity
    • appendIndexAsync

      public void appendIndexAsync(org.enhydra.shark.api.SharkTransaction sharkTransaction, String processId, String activityId, boolean forceSharkService)
      Appends index function call in ActivityIndexingService to shark transaction.
      Parameters:
      processId - id of process
      activityId - id of activity
      forceSharkService - force use shark service to retrieve activity data
    • appendIndexAllActivitiesAsync

      public void appendIndexAllActivitiesAsync(org.enhydra.shark.api.SharkTransaction sharkTransaction, String processId, boolean forceSharkService)
      Appends index function call in ActivityIndexingService to shark transaction.
      Parameters:
      sharkTransaction - shark transaction
      processId - id of process
      forceSharkService - force use shark service to retrieve process data
    • indexSync

      public void indexSync(String processId, String activityId, boolean forceSharkService, boolean checkProcessing)
      Calls sync index function in ActivityIndexingService
      Parameters:
      processId - id of process
      activityId - id of activity
      forceSharkService - force use shark service to retrieve activity data
      checkProcessing - checking if the activity has no processing status
    • indexSync

      public void indexSync(Map<String,List<String>> activityIds, boolean forceSharkService)
      Calls sync index function in ActivityIndexingService
      Parameters:
      activityIds - map of process id keys with list of activity ids
      forceSharkService - force use shark service to retrieve activity data