Use the custom component to retrieve form data

Hi, I'm creating a custom component that can extract data from form for a task, when I run the component in the workflow, it will throw an exception:

"com.adobe.idp.taskmanager.dsc.client.task.TaskImpl cannot be cast to com.adobe.idp.taskmanager.dsc.client.task.TaskInfo.

on line:

' TaskInfo tinfo = taskManager.getTaskInfo (taskId);

If I put the same code on a java console app to test it, it works fine.

I tried Google but offer nothing for TaskImpl.

Thank you

hkho

These links should help:

http://help.Adobe.com/en_US/LiveCycle/9.0/componentXMLRef/webframe.html

http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm?content=001379.html

http://www.Adobe.com/devnet/LiveCycle/articles/dsc_development.html

-Note that for the import-package, it must be explicit.  specifying a.b.c won't matter in a.b.c.d classes.

-for classes that you import, you can not have the jar in the classpath of component.xml and do not want it in included in your container of components.

-If you use ServiceClientFactory.createInstance () without a context, then you will get the current context.  Which it is depends on how your service operation is called.  I have direct invocation by a user will have the context of the user.  So called by the engine of workflow in a long-lived process then it will run in a system context.  Since you call TaskManager to extract data from a task, rights of access apply so you should be aware of the context.  The context of the system has full access rights so it can get the desired results.  But runs under the context of the user calling, that user must be the owner of the task or the request fails.

Tags: Adobe LiveCycle

Similar Questions

  • Removal of the custom by TestStand 4.0 data types

    Hello! I use the custom in my TestStand sequence data type. This data type is derived from my own control and is a huge cluster of clusters. It is created in a file of sequence (and not in any *.ini). By changes in the sequence, it becomes necessary to delete existing custom data type and create a new one due to changes in the custom control. How can I remove custom data types?

    I n ' found any possibility to do in Teststand menus. It was not so important, if the custom data type was not so huge.

    Thank you in advance for your answer - maybe it's a workout if no direct solution?

    Hello

    Just see the Type of data in the file in the sequence and highlight the custom data type it, then delete it.

    (Please make sure that you do not have variables defined in your file of sequence that still use the data type you want to remove).

    Concerning

    Ray Farmer

  • Problem in the use of custom component.

    I want to create a component that is customized by using action script
    I use flex builder 2.
    I looked at the flex guide 2 devlopers and tried with the simplest example, having two parts:

    MyButton.as file for the custom component:
    the myControls package
    {
    Import mx.controls.Button;
    public class MyButton extends button
    {
    public void MyButton (): void
    {

    }
    }
    }

    the main application mxml file contains:
    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    layout = "absolute" xmlns:myControls = "myControls.*" >
    < myControls:MyButton width = "100" height = "25" / >
    < / mx:Application >

    When compiling, flex builder displays a message:
    Errors exist in the project (s) required: MyProject
    Continue the launch?

    However, when I remove the following line from the main application file:
    < myControls:MyButton width = "100" height = "25" / >
    It runs successfully.

    Please someone help if there is any question about.

    The only thing I can think is that MyButton.as is not a directory of myControls, with myControls directory is a subdirectory of the directory is your mxml file. It's the only thing I can think of.

  • applicationContext remains "null" after using the custom url scheme to launch the app

    Hello

    I am currently working on a DPS application for a customer who wishes to use its own authentication system.

    The client system is implemented so that they send the valid token to a URI with a custom method.

    By setting the same pattern custom in my app DPS constructor, I can get the app from the login window.

    What is described in the library of DPS & Api store 2.32 documentation, I understand that

    " adobeDPS.configurationService.applicationContext must contain several variables associated to how the viewer was started or enabled:" ","this class represents the context under which the application is launched '


    However, in my application when I try to see what contains the applicationContext, the object is always 'null '. It doesn't matter if I started the application by clicking on its icon or if it was launched using the custom uri scheme.


    Is this a bug or am I missing something here? I really need this token.

    Hello

    After being stuck for a while trying to work with the url of my client for usage, I finally tested it with a modified version and have found the cause of the problem.

    Work of first information provided by a colleague who was apparently not detailed enough for the customer asked me to use a url of the form App. scheme://auth/#token=...

    It turns out that this kind of url can start or bring the app to the front, but applicationContext remains empty.

    My tests using a url in the same form as you suggested (eg. app. scheme://v1/slot/library) can trigger the app or transmit data.

    The documentation available in the SDK library & shop and article on how to use a custom template is very vague on what formats link actually works, and how we can vary with it.

    A breakdown of official links to pieces, that the parties do and what items can be modified (for example ' / appstate') within the API documentation would be a great help for developers, I think.

    Kind regards

    Lorin

  • my privacy setting is stuck on do not forget history, won't stay on using the custom settings for history, after I've selected and click ok

    When I go to tools, Options, privacy and "Use the custom settings for history" of the value and then click on OK it won't save. It remains on "Remember history", even if she never will save "remember history" as I tested it. It seems if be produced after these recent last Firefox update. Anyone know why I can not choose "Use the custom settings for history", as is the parameter I want to use?

    Why aren't satisfied with the history settings by default that you currently have?

    Any changes (for example, to disable the cookies third party or form not given memory or keep cookies until you close Firefox and make an exception for the cookies you want to keep) that you will cause "use... custom parameters. "to be selected if you really want to see.

  • Error when using the API to publish on form

    Hello

    I use the instructions here to post data to a form of eloqua. When the form is displayed, I get the message:

    Code: UnexpectedDataException

    Message: Could not submit form. Check that the required fields have been provided and that all fields are of the correct type.

    Again, using the example as a guide, form Eloqua is only 3 fields - Email, full name, company. None of the fields are mandatory and are all text.

    I'm at a loss. According to me, there I'm missing something simple, but can't. Anyone has an idea on what might be causing this error?

    Thank you

    Nick

    OK, you can use DescribeEntityType, which will bring back all forms and their identity papers, to ensure that you have the right one.  Also, once you have the right ID, you can use DescribeEntity (to aid the DynamicEntity ID) to get a list of all the fields and whether or not they are required.

  • Alignment of child in the custom component in Flex 3

    Hello

    I am newbie to Flex and glued on the essential point.

    I'm trying to align the children in a custom as Center horizontally and vertically from the Middle component but the result is not harmonizing at all.

    It's my custom componet "LoadingPanel.mxml" under the component package which children I want to focus.

    <?xml version="1.0" encoding="utf-8"?>
     
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
                 width="100%"
                 height="100%"                                   
                 title="DCP v1.1" horizontalAlign="center" verticalAlign="middle">
         
         
         <mx:Panel backgroundColor="#BB3030" width="300" headerHeight="15">
               
               <mx:ProgressBar id="bar"
                                    indeterminate="true"
                                    labelPlacement="top"
                                    minimum="0"
                                    visible="true"
                                    maximum="100"
                                    label="Loading..." 
                                    direction="right"
                                    mode="manual"
                                    width="100%"
                                    trackHeight="14"
                                    
                                    color="#FFFFFF"/>
         </mx:Panel>
         </mx:Panel>
    
    

    Here are my main application where I use this custom component

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel/>
    </mx:Application>
    
    

    I also tried to give the alignment in the custom component instantiation.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel horizontalAlign="center" verticalAlign="middle"/>
    </mx:Application>
    
    

    I'm sure that there must be no way to do it, but it's hard luck for me.

    Thank you

    Mac

    Jin

    pls put your control on the box and set the property of the box horizontalAlign="center" verticalAlign="middle" , may be it will be wrk.

  • How can I clear the browser history when you use the custom settings for history?

    When my history option is set to "Use the custom settings for history", the options page has no link to "clear recent history". There was formerly a menu option, but that seems to be gone now with Firefox 29. Is my only option to access the dialog box, clear the history all to change the historical option to history to remember and then change it back? Is there another way to access the option erase history all?

    I think you can get the menu bar by pressing the ALT key. If you want to return permanently, click View > toolbars and check menu bar.

  • I wan to save my history Web sites, but my computer does not record. I go to tools &gt; options &gt; privacy and try to "save history", but it goes back to "use the custom settings for history"... I'm all down on those checked so it should save, but it do

    I wan to save my history Web sites, but my computer does not record. I go to tools > options > privacy and try to "save history", but it goes back to "use the custom settings for history"... I'm all down on those checked so it should save, but it doesn't.

    Thank you for taking the time to help me!

  • Firefox guard handed himself to "never remember history" even if I say "use the custom settings for history".

    Firefox seemed to work fine until yesterday. When I used Firefox yesterday, my home page was changed to Firefox start page and did not open my tabs from the day before. I went to settings and changed the homepage back to google.com and told to "use the custom settings for history". I closed Firefox and opened it again and my homepage was google.com, as I put it, but it was back to "never remember history". I tried several times, yesterday and today, but Firefox keeps affecting himself never "remember history".

    Choose the 'use the settings customized for history' parameter is not make changes to the parameters of the history and cookies.

    Firefox displays the "use the custom settings for history" as an indication that at least one story and cookie settings is not the default to make you aware that the changes have been made.

    If all the history settings are default, custom settings are hidden and see you "conservation rules: (never) don't forget history."

    Don't remember history"means that private browsing is active and"Always use private browsing mode"Gets a check mark.

  • I want to use the digital signature on a form filliable but cannot. My digital signature is created, but I can't use it.

    I want to use the digital signature on a form to fill out, but can't. My digital signature is created, but I can't use it.

    If you want to type their name, you can add a text field, but they can do it in any case either by using the comment tool to add text or the pencil comment (if they want to hand-draw draw a signature).

  • I want to use the custom pattern, actions ets... But I can not find custom files to [presets &gt; model] or [presets &gt; actions]... Where should you put these files?

    I want to use the custom pattern, actions ets... But I can not find custom files to [presets > model] or [presets > actions]... Where do I put these files?

    If you're on a PC - C:\Users\ [username] \AppData\Roaming\Adobe\Adobe Photoshop CC 2015\Presets

  • I installed a trial of Illustrator from Adobe on my macbook pro. I want to draw a picture using the custom trace button but can not. Does anyone have any ideas how I could track custom?

    I installed a trial of Illustrator from Adobe on my macbook pro. This is the release of 2014 of the adobe Illustrator. I want to draw a picture using the custom trace button.

    I start a new document. Then I place my scanned pencil/color pencil, drawing, in the document. I tried to scan and then placing it as jpeg, bitmap and a tiff file. I tried scanning and place then, in color and in black and white. The scan mode that I use is flat. Adobe Illustrator allows me to select the default button and one of the eleven preset buttons (e.g. photo high fidelity), but cannot me click on the record button custom. The custom trace button is gray while all other buttons are white.

    Does anyone have any ideas how I could track custom?

    Just it trace, and then change the options later. The follow-up is 'live', you can press the buttons and see what happens.

    See also the manual.

  • Where is: "use the custom settings for history".

    My Firefox 50 in options/privacy shows that "Remember history" (attached) and not "use the custom settings for history" that I used to see in previous versions. Searching the internet in Firefox 50 shows no results. I'm looking to see what cookie settings I have on a particular site. Could you please help?

    Change the title of terrace in the place where is: "use the custom settings for history".

    "Do not know Fred, but of course, I fell on this one!

  • How to read the videos recorded using the FLVPlayback component?

    Hey guys,.

    I recorded video using fms and I want to play using the FLVPlayback component. I did some research but I can't find something

    useful, I tried this code:

    FLVPlayback.source = "rtmp://localhost/appname/instancename/video";

    This code does not work. Did I do wrong or something? Can someone tell me please on track!

    Thanks in advance!

    Randy

    You may probably want to use something like a text box can be changed in your swf file, where a path is entered could be played by the FLVPlayback component in the swf file.

Maybe you are looking for