iDoc Script to compare the metadata

Scenario:

Customers has a workflow approvers reviewers are selected when check-in, metadata and metadata xRevisors, xApprovers, is the list of multiple options and a table users view. But, the author, reviewer, and approver cannot be the same person. I create an iDoc Script to check for this, in the first step of the workflow:

< $if author as "xRevisors" or dDocAuthor as 'xApprovers' or xRevisors like $ "xApprovers" >

< $wfSet ("wfJumpName", "Check_participantes") $>

< $wfSet ("wfJumpTargetStep", "contribution@HmbGgqDocQualidade") $>

< $wfSet ("wfJumpEntryNotifyOff", "0") $>

< $wfSet ("wfJumpMessage", "author, reviewer, and approver cannot be the same person.") ") $>

< $endif$ >

This work when I choose as a reviewer or an approver, but stand them sometimes more than one person and that's my problem, xRevisors and xApprovers metadata save more than one user, then author as reviewer or approver compare it is false. How to make the script check this?

Or just convert the strings separated by commas results (<$rsMakeFromString$>) and loop games result sets.  This should be fairly simple.

On another note, I see even where this line of code would work.

<$if author="" like="" "xrevisors"="" or="" ddocauthor="" like="" "xapprovers"="" or="" xrevisors="" like="" "xapprovers"$="">-It's not comparing the fields, he compares a literal string, namely "is the value of the author as the word"xRevisors "?  How does this even in the first place?

Tags: Fusion Middleware

Similar Questions

  • IDOC script to get the list of users in alias

    Hello

    In the workflow script, I want to check if dDocAuthor exists in some alias. If there is, then proceed to treatment.

    I'm not able to compare dDocAuthor with users in alias. Infact I couldn't find any function of the IDOC script which returns users to alias.

    Help, please.

    Thank you

    Check out my blog post on how to get around the workflow via idoc if the author is part of a specific alias ():

  • Is it possible to use iDoc script to activate the Oracle text search?

    Hello, I created a query to search for files in a specific Department and I want to check if the files are uploaded in fact properly so I would combine the first part of my request that a comprehensive document, search for a key word.

    The server is configured to search for metadata database only, but I was wondering if you could create a script that would do a search for possible text anyway? If so, an example would be appreciated.

    Kind regards

    Iwona


    Be sure to check the documentation for your answers. They must be a primary (i.e., first) resource for you.

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e26692/searchindex.htm

    No information contained in the response of section "Configuration of the search Index" your question?

    Hope this helps,

    -ryan

    * may not be the most recent document, but this is the first returned by a quick search on google on your keywords.

  • IDOC Script - file

    Hello

    I use the following idoc script to set the value

    a folder:

    < #active.xAreaResponsavel $if as '1' $>

    < $dprDerivedValue = $' 4F98EE5F8AC02EF777E614C1F27AF038' >

    < #active.xAreaResponsavel $elseif as '2' $>

    < $dprDerivedValue = $' B1957B3CCB7325DC70630619566C90F9' >

    < $endif$ >

    This rule works at check-in, but the document to update the rule does not

    Can anyone help?

    Thank you

    I solved my problem by using the move User Interface of ADF.

  • Script to move the description metadata information in the title field

    I tried for 2 days (market) to try to get Bridge CS6 to copy the information in the Description field for the field title in the metadata. I can get it in the menu, but nothing happens when I change other scripts. Any suggestions would be greatly appreciated.

    If you want a good laugh, I can post my previous attempts.

    It is a way to copy the information...

    #target bridge
     if( BridgeTalk.appName == "bridge" ) {
    descToTitle = MenuElement.create("command", "Description to Title", "at the end of Tools");
    }
    descToTitle.onSelect = function () {
     if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
     var thumb = app.document.selections;
        for(var s in thumb){
     if(thumb[s].hasMetadata){
            var selectedFile = thumb[s].spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();
             var Description =  getArrayItems(XMPConst.NS_DC, "description");
            myXmp.deleteProperty(XMPConst.NS_DC, "title");
            myXmp.appendArrayItem(XMPConst.NS_DC, "title", Description, 0, XMPConst.ALIAS_TO_ALT_TEXT);
            myXmp.setQualifier(XMPConst.NS_DC, "title[1]", "http://www.w3.org/XML/1998/namespace", "lang", "x-default");
        }
    function getArrayItems(ns, prop){
    var arrItem=[];
    try{
    var items = myXmp.countArrayItems(ns, prop);
     for(var i = 1;i <= items;i++){
     arrItem.push(myXmp.getArrayItem(ns, prop, i));
         }
    return arrItem;
    }catch(e){alert(e +" Line: "+ e.line);}
    }
            if (myXmpFile.canPutXMP(myXmp)) {
            myXmpFile.putXMP(myXmp);
            myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
             } else {
      xmpFile.closeFile();
            }
        }
    }
    
  • Possibility to check/compare the configuration on the Ironport changes?

    Hello

    We have 2 devices of Ironport S370 and several directors of the devices.

    Does anyone know of a tool that could help us audit/compare the changes made by each Director? Replaces the political categories and custom specific URL access.

    Thank you!

    This script can help you: it creates the configuration file, it transfers by FTP and sends the diff between the latest two files from your email config:

    #! / bin/bash

    ironporthost = "192.168.42.42".
    ironportuser = "admin".
    ironportpass = "password"

    configdir = "/ home/backup/ironport.

    "emailalert ="[email protected] / * /"
    EmailSubject = "Ironport Config Diff.

    pathtosshpass = "/ usr/bin '.
    pathtossh = "/ usr/bin '.
    pathtolftp = "/ usr/bin '.
    pathtomail = "/ usr/bin '.

    # create the new configuration file
    ${pathtosshpass} / sshpass Pei ' ${ironportpass} "${pathtossh} / ssh-l ' ${ironportuser}" ${ironporthost} "saveconfig 0".

    # fetch configuration files
    CD ${configdir}
    ${pathtolftp} / lftp u ' ${ironportuser} "," ${ironportpass} "EI" mget EI/configuration / * xml & output "${ironporthost}

    # Send diff of the last 2 files
    files ='ls t *.xml | head - 2 '
    configdiff = "$files diff.

    echo ${configdiff} | ${pathtomail} / mail-s "${emailsubject}" ${emailalert}

  • Script to focal length metadata function

    Hello everyone,

    I'm looking to apply a script on my pictures, which is able to recognize the focal length in the metadata.

    I did a specific series of photo with 3 focal length: 50mm, 70mm and 105 mm and I want to apply a specific script on my photos based on the focal length...

    I hope you can help me

    Best regards

    Change the ActionName and ActionSet in function.

    #target photoshop
    if(documents.length){
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    xmp = new XMPMeta( app.activeDocument.xmpMetadata.rawData );
    if( xmp.doesPropertyExist("http://ns.adobe.com/exif/1.0/", "FocalLength" ) ){
    var fl= xmp.getProperty(XMPConst.NS_EXIF, "FocalLength").toString().match(/^\d+/);
    switch(Number(fl)){
        case  50 : doAction("ActionName","ActionSet"); break;
        case 70 : doAction("ActionName","ActionSet"); break;
        case 105 : doAction("ActionName","ActionSet"); break;
        default : doAction("ActionName","ActionSet"); //any other focal length
        }
    }else{
        //No Focal Length
        doAction("ActionName","ActionSet");
        }
    };
    
  • Compare the content of two equal nested tables

    I'm working on a black box test where I compare the contents of two structurally equal tables before and after executing a script of some. My two tables, MDQ_OLD and MDQ_NEW, are filled with the data in two separate operations.

    The two tables, I'll compare are nested, as you can see in the CREATE TABLE scripts below.

    I tried to use the less-operator sign, but without success.

    I also tried to select data in a type that is % ROWTYPE to my nested tables, but it does not work as well (see the below script in this post).

    Can you please help me on this problem on how to compare the content of two nested tables?

    Run the scripts below to reproduce the problem and be sure to update this post if more information is required.

    -The scripts below-

    Select * from version of v$.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Linux: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    -First of all, I create my types

    CREATE OR REPLACE TYPE FORCE AS OBJECT MDQ_DETAIL (NUMBER OF MDQ_DETAIL_ID, MDQ_DETAIL_DESC VARCHAR2 (100));

    CREATE OR REPLACE TYPE T_MDQ_DETAIL AS TABLE MDQ_DETAIL;

    -Note that this type contains the table T_MDQ_DETAIL type:

    CREATE OR REPLACE TYPE MDQ_PARENT FORCE AS OBJECT (NUMBER MDQ_ID, MDQ_DETAILS T_MDQ_DETAIL);

    - Then I create two equal nested tables

    CREATE THE NESTED TABLE AS MDQ_PR_OLD STORE MDQ_DETAILS MDQ_PARENT MDQ_OLD TABLE.

    CREATE THE NESTED TABLE AS MDQ_PR_NEW STORE MDQ_DETAILS MDQ_PARENT MDQ_NEW TABLE.

    -Insert test data in the nested tables

    Insert into MDQ_OLD (MDQ_ID, MDQ_DETAILS) Values (1, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    Insert into MDQ_NEW (MDQ_ID, MDQ_DETAILS) Values (2, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    -Try to use the negative operator to compare the contents of the trailer of the nested tables, but it gives this error:

    -ORA-00932: inconsistent data types: expected - got DISPATCH. T_MDQ_DETAIL

    Select * from MDQ_NEW

    less

    Select * from MDQ_OLD;

    -Try to select in a ROWTYPE, but it fails

    declare

    myTypeOld MDQ_OLD % ROWTYPE;

    myTypeNew MDQ_New % ROWTYPE;

    myTypeDiff MDQ_New % ROWTYPE;

    Start

    -Select gives: PLS-00497: do not mix between row and several rows (in BULK) list

    Select * bulk collect into mdq_old myTypeOld;

    Select * bulk collect into mdq_new myTypeNew;

    -Need a 'compare the function of membership card' on the types of multiset except to work, but as far as I

    -I'm not able to bulk collect into myTypeOld or myTypeNew, this won't help out me.

    myTypeDiff: = multiset myTypeOld except myTypeNew.

    end;

    -Cleaning:

    drop table MDQ_OLD;

    drop table MDQ_NEW;

    type of projection MDQ_PARENT;

    type of projection T_MDQ_DETAIL;

    type of projection MDQ_DETAIL;

    > queries you provided intercepts not who.

    You asked how to compare the content of nested tables.

    I knew that you didn't ask for what you actually want, that's why I asked you to specify the comparison more in detail.

    > Do you have a query that grabs this difference as well?

    SELECT o.mdq_id, od.*
    OF mdq_old o, TABLE (o.mdq_details) od
    LESS
    SELECT n.mdq_id, nd.*
    OF mdq_new n, TABLE (n.mdq_details) nd;

    > Also, if possible, do you have a sample of a statement to COLLECT LOOSE, please?

    Actually, you raise an interesting point on using % ROWTYPE, in my view, that should be. This make...

    DECLARE
    TYPE rt_mdq_new () IS RENDERING
    mdq_id NUMBER,
    mdq_details t_mdq_detail);
         
    TYPE tt_mdq_new IS TABLE OF THE rt_mdq_new;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    SELECT mdq_id, mdq_details
    LOOSE COLLECTION t_mdq_new
    OF mdq_new min.;
    END;
    /

    DECLARE
    CURSOR c_mdq_new
    IS
    SELECT mn.*
    OF mdq_new min.;
         
    TYPE tt_mdq_new IS TABLE OF c_mdq_new % ROWTYPE;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    OPEN c_mdq_new.
    Get the c_mdq_new COLLECT in BULK IN t_mdq_new;
    CLOSE C_mdq_new;
    END;
    /

  • possible to run a script (.jsx) in the elements?

    Here is my script: QTR StepWedge Tool.jsx

    and here is where I found this: www.quadtonerip.com/html/QTRdownload.html. Descend to the bottom and it is in this zip file: QTR-Stepwedge - Tool.zip you will need to unzip this file to get the script, I had a bit of bad paste in above, for some reason any.

    Here is what about the script and what it does:

    I want to run the script in Photoshop 9 or later. (I have 9 and 13).  Here's what this script... is for the linearization of a curve to print to a specific printer, paper and ink combination. A gray scale 20 step (by Kodak) and a print (using my printer, paper and ink), a grey scale 21 step are placed side by side and scanned on a scanner flat. I call analysis within the elements, so it is sitting in the workspace window. I select the grayscale scanning 20 step, the scanner, and a dialog will then appear. It asks to enter the values of gray, black and white ways as well as the number of steps. The script then stores this data and then I select and scan my impression of the 21 step file. The script compares the two and produced data that I then enter the final stage of the creation of curve of printer. That's what's supposed to happen, but after the first steps, elements fails.

    Then, briefly, the script makes two readings, one a grey scale of reference and the other a print from my computer. The script compares the two and produced the data needed for the creation of the curve.

    Thank you!

    Paul

    Too bad, people! Someone above the site elements found my mistake... I was using the wrong 21 step file for my second scan of the script.

    Thanks anyway! I'll probably come back one day.

    Best regards

    Paul

  • Comparing the virtual machine RAM and DataStore FreeSpace

    Hi all

    I'm trying to find out where VM is having more RAM compared to the data store space.

    I wrote the script for the same error below and is. More on is it possible I can print as VM name and name of data store after comparing the values. Please suggest.

    $vm = get - vm

    $vm | Select Name,MemoryMB,@{N='FreeSpaceMB'; E = {(Get-DataStore |)} Where {$_.} Name - eq ($vm. ({ExtensionData.Config.Files.VmPathName). Split('[]') [1]}). FreeSpaceMB}} | WHERE {$VM.memorymb - ge $_.} FreespaceMB}

    PowerCLI C:\ > $vm | Select Name,MemoryMB,@{N='FreeSpaceMB'; E = {(Get-DataStore |)} Where {$_.} Name - eq ($vm. ({ExtensionData.Config.Files.VmPathName). Split('[]') [1]}). FreeSpaceMB}} | WHERE {$VM.memorymb - ge $_.} FreespaceMB}

    Can't compare "4096" to "1621381 1621333". Error: "could not convert the.

    Value "System.Object []" type "System.Object []" type "System.Decimal. »

    At line: 1 char: 168

    {{+... ceMB}} | WHERE {$VM.memorymb - ge $_.} FreespaceMB}

    +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: InvalidOperation: (:)) [], RuntimeException)

    + FullyQualifiedErrorId: ComparisonFailure

    Try like this

    Get - VM |

    Select Name, MemoryMB,

    @{N = "FreeSpaceMB"; E = {(Get-Datastore-nom ($_.))} ExtensionData.Config.Files.VmPathName). Split('[]') [1] | Select - 1 first). FreeSpaceMB}} |

    WHERE {$VM.memorymb - ge $_.} FreespaceMB}

  • in comparing the index and a table between instances PK

    Aloha!

    I'll compare the indices and the PK's (Constraint) of 3 instances.

    This table of s/n/s best use? The comparison is made on a specific schema only.

    Please be kind enough to write the script that I need or tables.

    PS
    Which is better dba_ind_columns or dba_objects?

    BR,
    Hades

    Published by: TheHades0210 on December 2, 2012 21:58

    TheHades0210 wrote:
    Hello

    Thank you for these elaborate explanation. I just want to know why under dba_ind_Columns INDEX_NAME, some of the names of the characters $ and #. Is it system generated index?

    very probably are generated, the system but not necessarily.

    If so, what application generates this index?

    I don't know what applications are installed in your DB.
    No objects appear spontaneously.
    Someone has published the DDL that created.

  • Script to check the correct resource pools

    Hi guys

    Hoping someone can help with PowerCLI issue?

    I want to set up a script PowerCLI who together share CPU and memory allocated to all VMS in each Resource Pool, add them together and compare them with resource information in the list of resources and those who differ from a CSV output (including how on every property is different).

    The idea is that this script will quickly check through our vast domain for incorrectly configured in the resource pools (ie. those who have not been updated).

    Anyone able to help give advice on how I can get that data into PowerCLI from the pool of resources and the virtual computer?

    Thank you very much

    -


    a crazy penguin

    http://www.acrazypenguin.com

    I don't know if the values you provide are correct for what is planned.

    Especially the MaxCpuUsage won't say much because this will normally reflect the total amount of CPU resources on the host (provided that the customer has no defined limits).

    The following should give a better picture (I guess)

    $dcName = 
    $report = @()
    $dc = Get-View -ViewType Datacenter -Filter @{"Name"=$dcName}
    Get-View -ViewType ResourcePool -SearchRoot $dc.MoRef | where{$_.Name -ne "Resources"} | %{
         $rp = $_
         $rpMem = 0
         $rpCpu = 0
         Get-View -ViewType VirtualMachine -SearchRoot $rp.MoRef | %{
              $rpMem += $_.Summary.QuickStats.hostMemoryUsage
              $rpCpu += $_.Summary.QuickStats.overallCpuUsage
         }
         $report += New-Object PSObject -Property @{
              Name = $rp.Name
              "VmCpuTotal (MHz)" = $rpCpu
              "VmMemTotal (MB)" = $rpMem
              RpCpu = $rp.Runtime.Cpu.UnreservedForVm
              RpMem = $rp.Runtime.Memory.UnreservedForVm / 1MB
         }
    }
    $report | Export-Csv "C:\ResPool.csv" -NoTypeInformation -UseCulture
    

    Note that this does not overcommitment account. To have the script must use the unreservedForPool rather than the UnreservedForVm property property.

  • Compare the date of the day against a date entered

    Hello

    In my form, I need for the user to enter a 'date needed '. So I need to compare the need of today, and if it is less than 15 days away, I need to display a message: we need more 15 days to respond to your command. »

    I found some scripts on the Forum, but none is exactly what I need and I can't find how to modify them for this specific problem. Any help is appreciated.

    Thank you

    MDawn

    OK, you just need to add a script to the output of the dateNeeded field event.

    If (date2num ($.formattedValue, "MM/DD/YYYY") lt date() + 15) then

    $host.messageBox ("at least 15 days in the future be as date", "entered an incorrect date", 0, 0)

    endif

  • No need to advise - compare the date in *.sql with sysdate.

    Hi guys,.

    Need some help here.

    Someone has a script that will compare the date specified with the current sysdate. If previously, he will order that SQL * PLUS to leave immediately.
    The audit will be essentially in a script *.Sql. Whenever we run the script, @c:\script.sql, it will be first of all to compare the dates and decide whether to proceed with the rest of the codes (dml) below the date checker in the same script.sql

    Thank you

    I would like to combine the solutions of bencol and alberto:

    whenever sqlerror exit
    
    DECLARE
       v_date   DATE := TO_DATE('', 'YYYYMMDD');
    BEGIN
       IF v_date >= TRUNC(SYSDATE) -- or perhaps:  v_date>= sysdate
       THEN
         null;
       ELSE
         raise_application_error(-20000,'Date is before SYSDATE!');
       END IF;
    END;
    /
    
    whenever sqlerror continue
    
    -- rest of your script
    ...
    

    (not tested)

    Published by: hm on 08.05.2012 02:51

  • How to add the metadata group "Description"?

    I put it in the General Discussion first, but it should be there of course:

    Hello

    I use Photoshop CS6 with bridge.

    Work a lot with documentary images, the Description metadata field is crucial for registration of valuable information about the images, often a lot of text.  The bridge is useful - but not as helpful as I needed.

    Very often, I would like to add to the Description of a group of images, and this field of nice - but ONLY if it works is empty in all areas.

    And this is generally not the case.  I'll be back with more information to add, but often not to the same selection of images.  So if I try selecting them I get "(Multiple values)" in the field. "

    And if I type something in it SUPERSEDES the various existing content in the files of the image - loss very bad results of important data.

    So what I need is a way to ADD the text content of the Description field for a selection of images.

    Is it possible to bridge that I forgot?

    Or y at - it a plugin or an auxiliary program that could be used for this?

    Help please!

    Sverker

    Yes, it not is not too much information on scripts in Bridge, I hope this helps.

    Copy and paste the script in ExtendScript Toolkit or a text editor, save the file with the .jsx extension.

    To find the folder where he needs to be saved, open Bridge, select Preferences - Startup Scripts

    At the bottom, click on the 'reveal' button it will open the folder where the script should be saved.

    Re-launch Bridge and accept the new script.

    To use, select your documents, then mouse click with the right button on menu and select "Add Description".

    Good luck.

Maybe you are looking for

  • screenshot on ios 3 watch

    Hello How to take a screenshot on os shows 3 and where is the list of friend at Apple Watch 3 Thank you

  • I lost my bookmarks of firefox sync

    After reinstalling my pc, I added firefox to synchronize again. I had all the markers on my iphone via firefox home. When I first sync after reinstallation, all data was wiped out and went out the iphone too. Is there a way to get all of my lost data

  • Why XP won't come back successfully saved restore point or checkpoint?

    Whenever I try to go back to a restore either point, I created (before making a change or install something again) or a checkpoint restore point, restoring always fails.  I receive no information on the reason, it just says: it has failed and that "n

  • Unoock bootloader code

    Neee bootloader on my Xperia M4 Aqua code unlocking, how yo get it? Sony Xperia care allways me referring to this page, bougth this month of the device there is, at first startup after update almost no space is available on the internal satorage, ins

  • Cannot read sinhala fonts

    My camera is SONY Xperia Z3 compact, but I can't read SINHALA fonts pls Add SINHALA fonts