4 Replies Latest reply on Jan 13, 2012 8:13 AM by user2540

    How to compare two workflow files?

    876480
      Hi All,

      Is there is any way to compare the two version of the workflow file to find out the exact differences?


      Thanks,
      Arun
        • 1. Re: How to compare two workflow files?
          Srini Chavali-Oracle
          Download the workflow files (to wft format, using WFLOAD) and then run a utility like Unix "diff" on the two files.

          How to Download Workflow file .wft for Order Lines and Headers (OEOL, OEOH)          [Document 578248.1]
          http://en.wikipedia.org/wiki/Diff

          HTH
          Srini
          • 2. Re: How to compare two workflow files?
            user2540
            Hi Srini,

            The diff command is working but it is having its own issues.

            e.g. I compared 2 wft files but the output is having a glitch END ACTIVITY which must come at the end of the file is coming in between the file in which I am stroing the difference. (marked in bracket for your ref).

            Is there any way to overcome this issue.

            diff A.wft B.wft >> TESTDIFF.TXT

            3434,3443d3433
            <
            < BEGIN ITEM_ATTRIBUTE "TP"
            < PROTECT_LEVEL = "20"
            < CUSTOM_LEVEL = "20"
            < DISPLAY_NAME = "TP"
            < DESCRIPTION = "TP"
            < TYPE = "VARCHAR2"
            < FORMAT = "78"
            < VALUE_TYPE = "CONSTANT"
            < END ITEM_ATTRIBUTE
            38211,38225d38200
            < [END ACTIVITY]
            <
            < BEGIN ACTIVITY "POAPPRV" "MYFUNC"
            < PROTECT_LEVEL = "0"
            < CUSTOM_LEVEL = "0"
            < DISPLAY_NAME = "My Function"
            < DESCRIPTION = "My Function"
            < TYPE = "FUNCTION"
            < FUNCTION = "My Function"
            < RESULT_TYPE = "*"
            < RERUN = "RESET"
            < COST = "0"
            < ICON_NAME = "FUNCTION.ICO"
            < ERROR_ITEM_TYPE = "WFERROR"
            < RUNNABLE = "Y"
            • 3. Re: How to compare two workflow files?
              Srini Chavali-Oracle
              I am not sure what you are asking. You should be familiar with these two wft files and their differences

              Srini
              • 4. Re: How to compare two workflow files?
                user2540
                Yes I am aware of the difference.

                The issue is after the last line is displayed as < RUNNABLE = "Y"
                which should have been > END ACTIVITY

                but instead > END ACTIVITY this is getting printed in between the file after
                38211,38225d38200
                END ACTIVITY
                So the DIFF utility is jumbling up the output.

                Thanks
                Nazia