RIDC API: Which service to call to get information about all content in a file at end of BPM-piece attached?

In my application, it is possible for users to upload documents to WebCenter Content server. Later, when a BPM process is started, I need to attach these documents to this process. Based on this article, I need the following information on each document:

  • Do you have
  • dRevisionID
  • dFormat
  • dDocType
  • dSecurityGroup
  • DocUrl

I tried a few services such as 'COLLECTION_GET_CONTENTS' and 'COLLECTION_DISPLAY', but they could not give me all of the above information. My goal is to get all the documents in a folder and all of the above information in 1 single service call. I try to avoid using "COLLECTION_GET_CONTENTS" just to get a list of the documents and then call "DOC_INFO" on each document in the list to get detailed information, as it seems to cost too much service calls.

I also tried using "GET_SEARCH_RESULTS" but I could not understand the correct "QueryText" to search for all documents in a folder.

I would be very grateful if you could show me if there is a service that can return detailed information about all the documents in a folder.

Best regards

James Tran

Hi James,

With the help of this COLLECTION_GET_CONTENTS - RIDC you can get your required document information.

Try this code example: -.

dataBinder.putLocal ("IdcService", "COLLECTION_GET_CONTENTS");

dataBinder.putLocal ("hasCollectionID", "true");

dataBinder.putLocal ("dCollectionID", "235418074907008521");

Where 235418074907008521 replace with your record Collection ID

Send the request to the content server

ServiceResponse response = idcClient.sendRequest (userContext, dataBinder);

Download the workbook of data for the response of the content server

DataBinder responseData = response.getResponseAsBinder ();

The list of results = responseData.getResultSet("CONTENTS").getRows ();

for (DataObject result: results) {}

System.out.println ("\t Document ID =" + result.get ("dID"));

System.out.println ("\t revision ID =" + result.get ("dRevisionID"));

System.out.println ("\t Document Format =" + result.get ("dFormat"));

System.out.println ("\t Document Type =" + result.get ("dDocType"));

System.out.println ("\t Security Group =" + result.get ("dSecurityGroup"));

System.out.println ("\t Docu URL =" + result.get ("dWebURL"));

}

-Prashant

Tags: Java

Similar Questions

  • OSD-04011: GetFileInformationbyHandle() failure, unable to get information about the file

    Hi all

    I try to get my ORACLE ASM (v 11.1.0.7) software works on Windows Server 2008 Standard SP2 (32-bit), but unfortunately, I hit the next windows operating system error with no resolution in sight.

    OSD-04011: GetFileInformationbyHandle() failure, unable to get information about the file
    S/O-error: incorrect function (OS 1)

    Basically ORACLE software try to read the header information of a partition of existing online RAW drive. According to the error made ORACLE unrecognized function call. How can I make this feature available? Need help ASAP please.

    http://www.Microsoft.com/windowsserver2008/en/us/community.aspx

    They will help you in Windows Server communities at the above address.

    Here is the Vista Forums.

    See you soon. Mick Murphy - Microsoft partner

  • Songs disappearing; error message: "unable to listen to a number of files queued. To get information about the problem, click on the icon next to each file in the list pane. »

    I get this error message: "unable to listen to a number of files queued. To get information about the problem, click on the icon next to each file in the list pane. "The thing is that he played the songs darned two days ago, what has happened since then!

    Never mind. I totally forgot that I had renamed a folder that hosts my music. Duh.

  • Get information about the VM name, owner, State of the Machine and tools State

    Hello

    I want to write a script to get information about the name of VM, owner, status of the Machine and tools State, because I'm a beginner in powershell I couldn't find any solution yet.

    I know how to get the name of the virtual machine and the owner

    Get-VM | Get-Annotation -CustomAttribute Owner | select AnnotatedEntity, Value
    

    and how to find the tools and the State of the machine

    Get-VM | Select-Object -Property Name,@{N="State";E={$_.Guest.State}},@{N="ToolsStatus";E={$_.Guest.ExtensionData.ToolsStatus}}
    

    Unfortunately I don't find a way to merge the two applications.

    Can someone help me please?

    Kind regards.

    SaPu

    Try it like this

    Get - VM | Select-Object - property Name,@{N="State; E={$_. Guest.State}},
    @{N = "ToolsStatus"; E={$_. Guest.ExtensionData.ToolsStatus}},
    @{N = "AnnotatedEntity"; E = {$attr. AnnotatedEntity}},
    @{N = "Owner"; E = {(Get-Annotation-entité $_-CustomAttribute «Propriétaire»).} Value}}

  • How to get information about the types within a user defined package

    Hi all
    Have a package with some types (user-defined) defined in the package specification. How to get information about the types and
    information about the columns of this type.

    for example:
    Create package mp is

    type t is record (no number is varchar2 (30));

    procedure a (m t out...

    Thanks in advance.

    userg

    G_user wrote:
    the req's, want to build a script dynamically using data dictionary
    so if possible, I take the name of the type within the package specification.

    Let me rephrase - is there a data dictionary to get information on the type defined by the user within a package specification

    Best approach will be to have a standard in the definition of data types.

    Have a process to follow the object definitions in the package if it is mandatory.

  • Get information about the layer with script styles

    Is there a way for a script to get information about the currently existing on a layer layer styles?

    For example, can I know if a layer has a drop shadow, and that therefore, find the dimensions of this shadow, transparency, color, etc...?

    If you don't have CS4 you will need Xbytor script. With CS4, you can the the layer descriptor

    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('layerEffects'));
    if( desc.hasKey( stringIDToTypeID('dropShadow') ) ){
         desc = desc.getObjectValue(stringIDToTypeID('dropShadow'));
         alert('opacity = '+ desc.getDouble( stringIDToTypeID('opacity') ) );
         alert('distance = '+ desc.getDouble( stringIDToTypeID('distance') ) );
         alert('spread = '+ desc.getDouble( stringIDToTypeID('chokeMatte') ) );// spread
         alert('blur = '+ desc.getDouble( stringIDToTypeID('blur') ) );
         var desc = desc.getObjectValue(stringIDToTypeID('color'));
         var r = desc.getDouble( stringIDToTypeID('red') ) ;
         var g = desc.getDouble( stringIDToTypeID('green') ) ;
         var b = desc.getDouble( stringIDToTypeID('blue') ) ;
         alert( 'r = ' + r +'\rg = ' + g + '\rb = ' + b );
    }
    
  • Enumerate devices OR and get information about the device C / C++

    Hello

    I use using NI_DAQmx.  How to find and enumerate devices OR and obtain information about each device listed in C / C++?

    I am implementing a dynamic configuration allowing to access hardware OR on our system.

    I need to get logical device names, for example "Dev1", and then find what device OR, for example NI 6008, is associated with each device name.

    Thank you.

    -Neil shore

    If you just read the device information while you use DAQmx properties to achieve what you need:

    To get the names of all the devices in your system:

    DAQmxGetSysDevNames

    To get the product to a given device number (each product has a number of unique product in accordance with the reference C DAQmx help, for example, the USB-6008 case is 0x717A):

    DAQmxGetDevProductNum

    If you need to actually define the names of devices or whatnot, you would then focus on the System Configuration API.  I've never really used this outside of LabVIEW, but the Readme indicates he has CVI supports so you might be able to make it work.

    Best regards

  • How to get information about application pending approval in OIM 11 g R2?

    Hello

    We need the following details from application pending in OIM 11 g R2-
    ID of the request, assignees, asked the resource name, title of the application, the beneficiary, status of the request.
    Of the above attributes, we could find assignees, title of the request, the request status, recipient, etc.. But we get no application ID and name of the requested resource.
    We used the API - "IworkflowServiceClient".

    If we use API - "RequestService" so we don't get assignees and resource name approval request pending.

    Can any one suggest how can we get these details? Do we need to use the other APIs or other alternative to get all of the attributes of application pending.

    Thank you.

    Go directly to the database and look at the _SOAINFRA tablespace.  See the table in the WFTASK and see the contents of the entry.  If the information is there, then you should be able to retrieve the value of the API and to seize the land.

    -Kevin

  • How can I get rid of all the unnecessary since files on Firefox?

    How can I get rid of all the Junk I've met since going with Firefox?

    What useless files are you referring?

  • Get information about deleted virtual machines

    Is is possible to get information on who has erased a VM, or at least when it has been deleted using vCenter Server logs?

    Thank you

    The cmdlet Get-VIEvent, by default, returns only the 100 events.

    Use the - MaxSamples parameter with a very large number to see some results.

    Get-VIEvent - MaxSamples 99999.
    where {$_.gettype ().} Name - eq "VMRemovedEvent"} |
    Select @{N = "VMname"; E={$_. Vm.Name}},

    @{N = "Createduserid"; E={$_. Createduserid}},
    @{N = 'Host'; E={$_. $host.name}},

    @{N = 'User'; E={$_. User name}} |

    Export-Csv "C:\VM-deleted-audit.csv" - NoTypeInformation - UseCulture

  • [CS3 JS] Get information about Photoshop images in InDesign

    Hello

    Thanks to an InDesign script I can get several pieces of information about an image, for example, the name of the file, the resolution in PPI, the size in inches, color mode, etc.

    What I was wondering if it is possible to know how many layers a Photoshop image can have. I would like a quick way to know if an image was flattened (layer) without having to open the image in Photoshop.

    Tom

    You can do it via BridgeTalk, here is an example. Select a TIF or PSD image and run the script.

    const gScriptName = "Get number of layers";
    const gScriptVersion = "1.0";
    var gLayersNumber;
    
    Main();
    
    //===================================== FUNCTIONS  ======================================
    function Main() {
        var image, pixelDimensionsArr, folderPath, copyResult;
        var doc = app.activeDocument;
    
        try {
            if (app.selection[0].constructor.name == "Image") {
                image = app.selection[0];
            }
            else if (app.selection[0].images.length > 0) {
                image = app.selection[0].images[0];
            }
            else {
                ErrorExit("The selection contains no image.");
            }
        }
        catch(err) {
            ErrorExit("The selection contains no image.");
        }
    
        var link = image.itemLink;
        if (!link.isValid) ErrorExit("Can't get the link.");
    
        if (link.linkType == "Photoshop" || link.linkType == "TIFF") {
            if (link.status == LinkStatus.NORMAL) {
                linkFile = new File(link.filePath);
                if (linkFile.exists) {
                    CreateBridgeTalkMessage(link.filePath);
                    alert("Number of layers: " + gLayersNumber);
                }
            }
        }
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function CreateBridgeTalkMessage(imagePath) {
        var bt = new BridgeTalk();
        bt.target = "photoshop";
        var script = "GetLayersNumber = " + GetLayersNumber.toSource() + "\r";
        script += "GetLayersNumber(\"" + imagePath + "\");";
        bt.body = script;
    
        bt.onResult = function(resObj) {
            gLayersNumber = resObj.body;
        }
    
        bt.onError = function(msg) {
            alert("Error: " + msg.body);
        }
    
        bt.send(100);
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function GetLayersNumber(imagePath) {
        var f = new File(imagePath);
        app.displayDialogs = DialogModes.NO;
        var doc = app.open(f);
        var layersNumber = doc.artLayers.length;
        doc.close(SaveOptions.DONOTSAVECHANGES);
        app.displayDialogs = DialogModes.ALL;
        return layersNumber;
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function ErrorExit(error, icon) {
        alert(error, gScriptName + " - " + gScriptVersion, icon);
        exit();
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    
  • Getting information about the FLV file...

    is it possible to get information from the FLV file (perhaps in the metadata) to find the codec, frame rate, kilobits per second, audio data rate, etc...

    can read the information? or can it be done IN flash?

    FLV metadata viewer:

    http://www.buraks.com/flvmdv/

  • Get information about the camera in the calling Widget

    I use the BlackBerry Widget SDK and my app called the camera and once the user returns in the Widget, I would like to show a preview of the captured image. Right now, I'm just display the most recent file from the file system.

    It seems unlikely, but I was wondering if there is a way to identify what the user has done once the camera started? Was taken with a wink or did the user just press the back button? The best thing would probably be the path to the image that was taken, but I'll take what I can get.

    Thank you!

    Hello

    Of the functionality currently provided, you do the right thing.  We have an API "takePicture()" scheduled where it would return you the photo if the user has taken a hit.  But right now, looking for the most recent filed your current approach.

  • Want to get information about the coinlog.log text document

    Original title: coinlog.log text document

    Hello

    In Vista C: / Windows/temp - I noticed the text "coinlog.log" document, which contains in part something "destroyprivatedata".

    Nobody knows what this text is about; for example the malware?

    See you soon.

    Hello

    If I understand the question, you want information on document text coinlog.log. And want to know if it is a malware. Please let me know if this is not correct.
    To tell you that coinlog.log is the log of Installer file. A Setup is a DLL Win32 Microsoft that helps to peripheral installation. Installers of co are called by SetupAPI as "aid" for class installers.
    For example, a provider may provide an installer to write device-specific information in the registry that cannot be treated by the INF file.
    Apply DIF_DESTROYPRIVATEDATA directs a class installer to free any memory or resources allocated and stored in the field ClassInstallReserved of the SP_DEVINSTALL_PARAMS structure.
    For more information check out the link:
    http://msdn.Microsoft.com/en-us/library/ff543669.aspx
    If you want to make sure that the computer is virus-free, you can analyze your computer using Microsoft Safety scanner.
    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Warning: If you run the antivirus program that is infected by the virus scan will get deleted. Therefore, reinstall the program. Also, if files and folders are affected by the virus, while they might even get deleted.
    Hope this information helps you. If you need help or information, please reply to this message. I'll be happy to help you.
  • Get information about the physical location (serial) Visa (slot) in PXI time real (Pharlab)

    Hello

    I PXI system with controller time real (OS Pharlab) and many maps series (about 6 cards).

    The maps in the series are two different models, which each contain several (8431/8 and 8421/8) serial ports.

    And the COM Port enumeration mix and I would like to know the link between COM numbering where it is linked.

    I have already dealt with a few methods:

    1. I've tried using the node property of Visa but he cannot know which card port COM belong

    2. I tried to use the Configuration Library system and don't manage to get general information of the card and not what ports have this card.

    3 try to fill you with the VisaConf.ini, but discovers that ASRL and COM Auto-enumeration is the same.

    4. I tried to look in NISerial.ini, NISerial.dbs and NOR - RT.ini and did not find any help here.

    Application engineer or support suggest to look in the registry of the operating system Pharlab because it is windows based and material information must be stored in the registry

    Further explanation on the problem of PXI enumeration:

    PXI produce enumeration auto for the ports series (COM3, COM4, COM5...) according to the card slot, but when there is a mix of the two models of the system would then list a model (8431) from 3 to 50 (6 cards and 8 ports) and the other model (8421) 51 to 98. so if I have 8421 in 2 and 8431 slot number in the slot number 3 it would list 2nd slot COM59 to COM68 and 3rd slot COM11 to COM19.

    Why not just use NOR-MAX to manually configure the ports?

    The system is essential and can not be stopped for a long time and he operated by people who are not very technical, so the customer who wishes to be able to exchange business cards without futher configuration.

    Thank you

    Or Hirschfeld

    Application engineer

    SK-Electronika, Israel

    www.LinkedIn.com/in/orhirshfeld

    Solved and download the example of solution of community

    Get the location COM (Serial Port) and Port physical location in the chassis

Maybe you are looking for