Class OperationsAnalyzer

java.lang.Object
org.bonitasoft.engine.core.operation.impl.OperationsAnalyzer

@Component public class OperationsAnalyzer extends Object
Author:
Elias Ricken de Medeiros
  • Constructor Details

    • OperationsAnalyzer

      public OperationsAnalyzer()
  • Method Details

    • findBusinessDataDependencyIndex

      public int findBusinessDataDependencyIndex(String businessDataName, int fromIndex, List<SOperation> operations)
      Finds the index of operation of type SLeftOperand.TYPE_BUSINESS_DATA that references the expression of type ExpressionType.TYPE_BUSINESS_DATA with given name directly on the right operand or in transitive dependencies.
      Parameters:
      businessDataName - the expression content
      fromIndex - index of operation from which the analyse must begins
      operations - list of operations @return the index of operation that references the expression with given name and type.
    • calculateIndexes

      public LeftOperandIndexes calculateIndexes(int indexOfCurrentOperation, List<SOperation> operations)
      Calculates the next and the last indexes where the left operand located at the given index is used
      Parameters:
      indexOfCurrentOperation - index of current operation
      operations - all operations
      Returns:
      the next and the last indexes where the left operand located at the given index is used