How to get the content of the outcome document of the server component

Hello

I want to handle it with the content of a step in the workflow document. I am able to check document check-in and any new content.

I'm not able to get the content of the document.

This is the skeleton of my server component:

See section - it works OK

service.executeService ("CHECKOUT_IMPLEMENT"); Case of document - OK

Section GET_FILE

service.executeServiceEx ("GET_FILE", true); Ecexuted OK, but where is the content of the file?

How can I get content? Any byte [], InputStream?

No data

OutputStream out = service.getOutput ();

No usable data

Stream2 DataStreamWrapper = service.getDownloadStream (false);

Code HTML, but not the content of the files

service.getHtmlPageAsBytes ();

Check section - it works OK

binder.putLocal ("isFinished", "0");

binder.putLocal ("doFileCopy", "1");

binder.putLocal ("primaryFile", "new.pdf");

binder.putLocal ("primaryFile:path", "/ tmp/result/new.pdf");

service.executeService ("WORKFLOW_CHECKIN_SUB"); record new content - OK

Thanks for any advice,

Johny

Try this method: http://www.redstonecontentsolutions.com/technical-blog/java-filter-retrieving-afile

Jonathan

http://jonathanhult.com

Tags: Fusion Middleware

Similar Questions

  • How to get the ActiveX component value change event?

    Hi all

    LV 8.6.1

    I try to get the ActiveX component value change event. I covered forum and through examples, but I can't get an idea of how "Recalling vi. For example, in the example 'ActiveX event Callback for IE.vi' it is used "recall vi". I've added an example where the change event of value with the mouse to the bottom of the event are scheduled to the structure of the event. Mouse down event OK work but change the value no. Can anyone describe what I need to add to my example vi who value the change event works fine?

    BR, Jim

    Here is the solution! "Value changed event" is not performed in the structure of the event, but in "Reminder VI".

  • How to get the server port in the operation of the component.

    Hi all

    How can get port information no server in what component work.

    You can get by using sharedObects

    see this

    http://www.techartifact.com/blogs/2013/10/get-intradoc-server-port-in-custom-component-in-WebCenter-content-UCM.html

  • How to get the content during execution classpath

    In production mode, I can't stop the weblogic server. In the command line window, shows that recent information. How to get the content of the classpath of weblogic domain?

    You can view the log file of the server under the location */servers//log / *. The log file contains the details about the CLASSPATH setting.

    A typical classpath is represented by the java.class.path attribute in the log file.

    See you soon,.
    Julien
    http://WebLogic-wonders.com

  • How to get the content incorporate the swf file in Swf Loader on the run time

    How to get the content incorporate the swf file in Swf Loader on the run time

    [Bindable]

    [Embed(source="assets/index.swf")]

    private var SWFSRC: Class;

    < mx:SWFLoader id = "_swfloader" source = "{SWFSRC}" / >

    It might be Loader (DisplayObjectContainer (_swfLoader.content) .getChildAt (0)) content

  • How to get the content of the shape layer settings in the CEAP?

    Hi all

    I don't know when I want to export the settings from the contents of the shape layer.

    Now I add Polystar Path1, zig - zag 1 and Repeater1, three material layer shaper.

    Content does not seem to be equal to effect. I used AEGP_GetNewEffectStreamByIndex can get the parameter of the effect of the shape layer. But none of the content information.

    Does anyone know how to get this content settings?

    Thank you.

    ha ha, silly me.

    I missed your intention completely.

    It's actually very simple.

    It was recently discussed here:

    http://forums.Adobe.com/thread/741968?TSTART=0

    I hope I got it this time.

    :-)

  • BB10: How to get the response header

    Hi guys,.

    I would like to how to get the response header of a request using a typical QNetworkAccessManager. What I really need, it's to get the server date and I know that the response header there.

    I have seen that you can access some header in the response of the requestFinished() function object. But none of them is the Respone header.

    Does anyone have any idea on this?

    Thanks in advance.

    Hello

    If you have subscribed for over QNetworkManager (QNetworkReply * response) of the signal, use:

    Reply-> rawHeaderList() for a list of all the available headers.

    reply-> header (param) make themselves known headers, but they do not include Date.

    Reply-> rawHeader ("date") for the date or other custom headers.

    http://Qt-project.org/doc/Qt-4.8/qnetworkreply.html#rawHeader

    Returns the raw content of the header headerName such as sent by the remote server. If there is no header, returns an empty byte array, which may be distinguished by a header blank. HasRawHeader () allows to check if the server sent this header field.

  • How to get the software You ' r on the Iceland?

    How to get the software You ' r on the Iceland?

    Adobe resellers http://adobedealreg.force.com/PartnerSearch?lang=en

    -http://www.adobe.com/content/dam/Adobe/en/products/creativecloud/cc/pdfs/cc-availability-m atrix.pdf

  • How to get the text formatting in the tables

    Dear experts and aid

    For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
    Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).

    The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
    [[Garneau, 1990 #12]]    »   [9]
    The good article can also be locally as text, e.g. [9]
    Then follow the same (or smaller) number of paragraphs with text formatted like this:
    [9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.

    Is it possible to replace in the body of the function below the next song

      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
    

    with this

      while(pgf.ObjectValid()) { 
        gaBibliography.push(pgf);
        pgf = pgf.NextPgfInFlow;
      }
    

    Do I need a special statement of the gaBibliography range?
    And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?

    Currently, I read in the tables as "strings" (function GetText not shown):

    var gaFmtCitsRaw  = [];                           // left column in processed RTF
    var gaFmtCitsFmt  = [];                           // right column in processed RTF
    var gaBibliography= [];                           // bibliography lines from processed RTF
    // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf 
    
    function ReadFileRTF (fileName) {
      var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ;
      var TAB = String.fromCharCode(8);               // FM has wrong ASCI for TAB
      var parts = [];
      
      openParams = GetOpenDefaultParams();
      openReturnParams =  new PropVals();  
      newDoc = Open (fileName, openParams, openReturnParams);  
      pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow
    
    // --- read the temp/formatted citations  
      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        if (pgfText.substring (0,2) == "[[") {        // citation lines start with [[
          parts = pgfText.split(TAB);                 // get the two parts of the line
          gaFmtCitsRaw.push (parts[0]);               // Push the result onto the global array
          gaFmtCitsFmt.push (parts[1]);
          pgf = pgf.NextPgfInFlow;
        } else { break }
      }
    
    // --- read the bibliography
      while(pgf.ObjectValid()) {                      // until end of doc
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
      newDoc.Close (Constants.FF_CLOSE_MODIFIED);
    } // --- end ReadFileRTF
    

    The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...

    Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.

    // Add a new paragraph after the current paragraph.
    var newPgf = oDoc.NewSeriesPgf (lastPgf);
    var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0));
    
    oDoc.TextSelection = textRange;
    oDoc.Paste ();
    

    -Rick

  • How to get the authentication of the user for the link of the Questionnaire Survey Builder?

    How to get the authentication of the user for the link of the Questionnaire Survey Builder?

    Page 100

    The content can be dynamic and the link is unique to the participant, but they all go to Page 100, which has an alias of Q. The link is unique because of the value of the request passed not because of the page.

    Thank you

    -Jorge

  • How to get the difference in dates in days

    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    This gives negative also result

    Hello

    776317 wrote:
    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    Date1 - date2 is the exact number of days is after date2 date1. (It is as accurate as possible, given that the DATEs do not have fractions of a second).

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    You want to probably get the exact number of days first, then ROUND this number:

    SELECT  ROUND (SYSDATE - TO_DATE (date_start, ...))   AS days
    FROM    per_periods_of_service; 
    

    Always pass arguments at least 2 to TO_DATE:
    (1) the string to be converted, and
    (2) a saying string how (1) is formatted

    This gives negative also result

    Right; If date1 is before date2 then date1 - date2 returns a negative number.
    If you want to never get a negative value, use ABS (date2 - date1). If it returns 4, then you know that one of the DATEs was 4 days before the other, but you won't know who was earlier.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

  • How to get the path or the file name of getChild

    Hey everyone, good day!

    Is - anyone here know how to get the path or the file name of an object inserted into the scene?

    Here's the scenario:

    I am developing a flash application, which allows the user to insert background to the scene to help her browse and select using the FileReference in flash. I inserted some image the user successfully choose, but what I'm trying to make, is that if the user clicks on save, the background image it has chosen will be copied to a different folder on the web (file upload). So I need to know the path and the file name of the background image.

    Here is my AS3 code:

    for (var i: uint = 0; i < container.numChildren; i ++) {}
    trace ('\t|\t' + i +'. \t name:' + container.getChildAt (i) .name + "\t type:" + typeof (container.getChildAt (i)) + "\t" + container.getChildAt (i));
    }

    ------------------------------------------------------------------------------------------ -----

    Here is the message trace of the code above:

    |     0 name: instance120 type: object [object Loader]

    ------------------------------------------------------------------------------------------ --------

    Any help here? I thank in advance.

    The Loader class has a property contentLoaderInfo (an instance of the class LoaderInfo) that contains information, that you are probably after, including the url of the content that has been loaded...

    Loader.contentLoaderInfo.url

  • How to get the name of the current PDF file?

    Hello world

    I know this is maybe a question has been asked millions of times, but I couldn't find a straight answer.

    I am using a workflow that comes with a Content Manager Solution is not Adobe this WF will generate a file very long (about 30 characters) name that will be used as the number of unique processes.

    To go to the step next in the workflow that I have to update the table in the database and registration update will use the process number.  What I did is that I added a field in hidden text in the form, which should have the number of processes on the initialize function.

    Now my question is how to get the file name of the opened PDF file?

    I'm sure that there is a function in JS, but I couldn't find the way to do it.

    Thanks in advance guys for help.

    Mazen

    Acrobat can create LiveCycle Design possible forms, but each uses a different and different languages or syntax approach.

    There are a number of ways to get the file name and path, urt getFileName.

  • How to get the value of a selected character unicode?

    Hi all

    How to get the value of a selected character unicode?

    The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp

    Therefore, the value of a selected character unicode is

    App.Selection [0]. Characters [0].contents.charCodeAt (0)

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

Maybe you are looking for

  • PCI Data Acquisition and Signal Processing controller driver

    I installed win 8.1x64 on my HP Probook 450 G2, but miss me the driver of PCI Data Acquisition and Signal Processing controller. Can you please help? Thank you Leontina

  • Satellite Pro A100 (PSAA3) - Cannot install the display driver because of the length of the specified directory path

    Downloaded, extracted and I tried to install it, (installed before but had to reboot the computer) Error message"SETUP cannot continue because the length of the greater of the specified directory, the name of the installation folder path exceeds 88 c

  • OSX10.10.5 can't find quicktime

    New to me 2008 macbook pro with OS X 10.10.5 yosemite loaded this morning I want to load my old collection of records to a memory stick. I can't find quicktime on this old macbook? Mac

  • Slow first printing with LBP6000

    I've just implemented a new LBP6000 on my OSX Maverick iiMac running. The first printed page lasts 25 to 30 seconds. In the name of selling on Amazon Cannon wrote several times first impression takes 8 seconds or less. Is it possible I can get 25 to

  • E4200/DirecTV receiver network question

    Hello. I have a network problem I can't solve. My DirecTV HD DVR (HR21-700) receiver shows work connecting to my network and internet. However, the port services STB (27161-27192 range) does not connect via my router (linksys E4200), automatically or