Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-571

Assignments in the setWorkflowInst and setWaitforConditionSatisfy methods need 'this' keyword

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.5
    • 0.6
    • workflow manager
    • None

    Description

      I found minor bugs in two setter methods in the org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread class:

      IterativeWorkflowProcessorThread.java
      public void setWorkflowInst(WorkflowInstance workflowInst)
      {
        workflowInst = workflowInst;
      }
      
      public void setWaitforConditionSatisfy(long waitforConditionSatisfy)
      {
        waitForConditionSatisfy = waitforConditionSatisfy;
      }
      

      They should be changed to the following so that values from the parameters are assigned to member variables:

      IterativeWorkflowProcessorThread.java
      public void setWorkflowInst(WorkflowInstance workflowInst)
      {
        this.workflowInst = workflowInst;
      }
      
      public void setWaitforConditionSatisfy(long waitforConditionSatisfy)
      {
        this.waitForConditionSatisfy = waitforConditionSatisfy;
      }
      

      I've attached a patch for reference. Although this should be a trivial change I wanted to post this issue and patch to make sure that the change would be ok.

      Attachments

        1. OODT-571.rlaidlaw.2013-03-07.txt
          0.9 kB
          Ross Laidlaw

        Activity

          People

            rlaidlaw Ross Laidlaw
            rlaidlaw Ross Laidlaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: