The attribute value set using plugins

Hi Experts,

I am confronted with error when you set the value of the attribute in the event "OnInvestigationStartedEvent". Any suggestion to solve the problem

Code:

Its session = onInvestigationStartedEvent.getSessionContext () .getInterviewSession () .getRuleSession ();

Start of attribute = ses.getGlobalEntityInstance () .getEntity () .getAttribute ("test_start_time");

Date start_date = new Date();

start.setValue (ses.getGlobalEntityInstance (), start_date);

Error:

25750 [http-Apr-8080-exec-9] INFO com.oracle.determinations.engine.Session - setting test_start_time attribute, global entity, name of the world body, session 1 value user 21/07/13 14:17

25752 [http-Apr-8080-exec-9] ERROR com.oracle.determinations.web.platform.templatingengine.ErrorRenderer - a change to the Session of the rule has been detected.

com.oracle.determinations.interview.engine.exceptions.CorruptSessionException: an unauthorized at the Session of the rule changes was detected.

at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.checkSessionIntegrity(RuleSessionManager.java:760)

at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.getRuleSession(RuleSessionManager.java:144)

at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getRuleSession(LocalInterviewSession.java:203)

at com.oracle.determinations.interview.engine.data.model.InterviewEntityInstanceIdentifier.findEntityInstance (InterviewEntityInstanceIdentifier.java:73)

at com.oracle.determinations.interview.engine.local.AttributeGoal.getNextScreen(AttributeGoal.java:112)

at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getNextScreen(LocalInterviewSession.java:222)

at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:65)

at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:112)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)

to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:589)

to org.apache.tomcat.util.net.AprEndpoint$ SocketProcessor.run (AprEndpoint.java:1852)

to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (unknown Source)

to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

at java.lang.Thread.run (unknown Source)

Thank you

Vinay

Vinay,

When you work in an engine of the interview event handler, you can use objects of the engine of the Interview to set the values. Take a look at the example 'use of the OnInterviewSessionCreatedEvent to start in a session data newly created' in the 'the Oracle policy Automation Developer's Guide'.

Your code should look like:

get the globalInstance of a new InterviewUserData;

Data InterviewUserData = new InterviewUserData();

InterviewEntityInstance globalInstance = data.getGlobalInstance ();

the value of the test_start_time

Date start_date = new Date();

globalInstance.setValue ("test_start_time", start_date);

submitting data to the session of the interview.

Result TransactionResult = session.submit (data);

I hope this helps.

See you soon

Frank

Tags: Oracle Applications

Similar Questions

  • I am reorganizing the attribute value using javascript. see code below

    Hi all

    I am reorganizing the attribute value using javascript. see code below and suggest me

    EX: id = "to THE:1" reorganize to id = "to THE:2"

    myDoc var = app.activeDocument;

    var myGlueCodePath = app.filePath + "/ Scripts/XML rules/glue code.jsx";

    var myFile = File (myGlueCodePath);

    app.doScript (myFile);

    If (app.documents.length! = 0) {}

    var myRuleSet = new Array)

    new findObjAttribute ("//auq")

    );

    {with (MyDoc)}

    var elements = xmlElements;

    __processRuleSet (Elements.Item (0), myRuleSet);

    }

    }

    else {}

    Alert ("you have no open documents!");

    Exit();

    }

    function findObjAttribute() {}

    myIdName = "findObjAttribute";

    This.XPath = ("[/ / auq[@id]");

    This.Apply = function (myElement, myRuleProcessor)

    {

    elmName = myElement var .markupTag .name;

    {with (MyElement)}

    try {}

    var myAttName = myElement .xmlAttributes .itemByName ("id") .value;

    SS var = myAttName.replace(/[A-Z]+\:/,""); "

    var SSS = ss - 1;

    myAttName = myAttName.replace(/[0-9]/,sss)

    $.writeln (myAttName);

    } catch (e) {};

    }

    }

    }

    Your code re - order the value correctly, but you don't have the update attribute in the element.

    Try this,

    myAttName = myAttName.replace(/[0-9]/,sss);

    myElement.xmlAttributes.itemByName("id").value = myAttName;

  • Time zone is GMT I need the UTC value, I use Windows Vista

    My computer laptop time zone is set to GMT I need the UTC value, I use Windows Vista.

    Please tell me how to change it?

    Thank you

    Hi Dibo79,

    I suggest you follow the steps listed in the article. Steps 5 and 6 are specific to how to change the time zone setting in Windows.

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-the-clock

  • How to solve [' < ' may not appear in the attribute value]

    Set the attribute value to inputText as follows:
    value="#{bean.newMode==true ? '<auto>' : bean.someValue}"
    but I got the error in the title.

    I tried to add a '-' before ' < ',.
    but still does not work.

    Thank you.

    Kevin.

    Try

     & lt; and & gt; 
    

    Remove the space after the &

    Timo

    Published by: Timo Hahn 25.06.2009 at 09:17

  • Get the attribute value of a def page table by using el expression.

    Hello

    Use Jdeveloper 11.1.2.0.0 and have a requirement like this for which a sample is created. Requirement is as follows...

    1. do you have a Taskflow with a readonly employee table.
    2. by clicking on a button called "itinerary" checks if the selected line, the attribute Manager id value = 200 then go to the first page on the other if the value attribute id manager is 200 then go to the second page.


    Through the def page, if it has the form, then we can access the attributes like #{data.view_FirstPageDef.ManagerId}. In the case of acquisition of the same attribute value from the table using the def page? is what I am unable to get...

    Come to the notion of routing using the router on Taskflow activity. But I am unable to get the selected row in a table of employee page def attribute value. Can anyone suggest on the same...


    Thank you and best regards,
    Olivier G

    On the router, right-click on its icon in the workflow and create a page definition. Then in the file def, add an iterator based on the same view of the table object in the first page, then add a value attribute that is mapped to the managerId in the iterator of the View object. Finally in the router, you can write EL expressions along the lines of #{bindings. ManagerId.inputValue = 200} or #{bindings. ManagerId.inputValue! = 200}.

    CM.

  • using the custom value sets rules of SOUL of special type of information

    Hi, I have custom value sets that I use with my types of special information. I have allowed these types of special information self-service and attached rules for approval their.
    Here my problem, some of the sets values are sql based and are designed to obtain information on the applicant. then I use a lot fnd_profile.value ('user_id').
    For example,.
    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')

    But when the sit is sent for approval, any field, the use of these custom value sets are missing. the only fields that are displayed are those not not with value sets with user_id profile as part of the query.
    My question is, is there a better way to retrieve information about the employees and thus be able to avoid this error?
    Thank you very much
    Iraqi

    Hi innocent,

    for the specific e-mail address case, maybe you can remove the valueset validation, set a default value based on the query and convert the field read-only, although I recall some faulty difficulties read only FDF.

    or maybe you could try changing the valueset to something like:

    Select email_address from fnd_user where user_id = fnd_profile.value('user_id')
    Union
    Select varchar2_value in the hr_api_transaction_values where >

    see you soon
    Giuseppe

  • Change a property of the attributes (VO) doctors use?

    Hello

    I use JDeveloper 11.1.2.4

    We use MDS in our application of user-level customization.

    We have an af:query and its corresponding table in our page. Based on responsibility, the columns of the table are visible/hidden.

    This part works very well the doctors use. However, there is a requirement more. The attributes to add to the option of advanced search for FY: query must also be based on responsibility.

    Now if an attribute will be displayed in the advanced search of af: query depends on the searchable property of the attribute to display.

    We use the following tag in the xml customization file in the model layer:

    < mds: change

    element = "(xmlns (mds_ns1 =http://xmlns.oracle.com/bc4j)) [/ mds_ns1:ViewObject[@Name='SearchView']/mds_ns1:ViewAttribute[@Name='LocationId'] " ">

    < mds:attribute

    name = "IsQueriable".

    value = "true" / >

    < / mds: change >

    Note: The two model and VC use the same customization file (configured in the ADF - config.xml.) The searchable property for all attributes by default is false.


    The question we face is that if I have 2 users A and B with different responsibilities. If a connection first, then whatever the attributes to display for one will be shown in B and vice versa (connections B if first, then both A and B will see the same attributes, i.e. user B). MDS selects the layer that is correct for the first user of the connection once the application has been corrected. However, after which never has connections, see the same attributes as the first connection.


    What Miss me?

    Thank you



    See http://docs.oracle.com/cd/E16764_01/web.1111/b31974/customize.htm#BABEGABC

    34.1.2 content static and dynamic personalization

    Customizations can be classified as static or dynamic. Static customizations have value to a single layer in force for all executions of the application, while dynamic customizations can have values that vary based on the execution of the application context. If a customization can vary for different users running the application, it is dynamic. If a customization has the same value for all users running the application it is static.

    When you implement customizations in ADF Model objects and ADF business components, customizations remain the same for any performance of the application. This is because these objects are loaded only once for an application and reused for the duration of the application. For example, you have a validation rule custom value of Healthcare company #1 site layer that limits the salaries for this site at 3300. It comes to static content for personalization.

    However, you can also implement customizations to the level of the controller or view allowing the value of the layer to determine at run time, based on user roles (responsibilities) or other application-specific criteria. For example, you can design an application that allows users of different organizations see different sets of fields on a given screen. It comes to dynamic content personalization.

    The determination of the question whether a customization is static or dynamic takes place in the class of customization. In the class of customization, if the getCacheHint() method returns ALL_USERS , then the layer of customization is static. For more information on CacheHint , see Section 34.2.2., "what you need to know about customizing Classes."

    All objects may have a static customization layer, depending on how personalization classes are implemented. But for ADF model and components items trade, customizations cannot be static.

  • Include the attribute custom report using the disc

    I'm to customize a script provided by Alan Renouf in his PowerGUI Powerpack.  The script I'm customization in the Powerpack is named 'VM disk sizes.

    His screenplay does everything we need from a point of view of output except that we can also include a custom attribute (Custom Field) VM as well as the information of the disk space.  I have included the below custom script, please note that this is a script/PowerGUI PowerPack we customize but was initially written and provided by Alan Renouf and all credit for this original work must be given to Alan.

    I have included our custom below script and have "in bold Red" line in the script that does not work:

    $AllVMs = get-View - ViewType VirtualMachine. Where {-not $_.} Config.Template}
    $SortedVMs = $AllVMs | Select *, @{N = "NumDisks"; E={@($_. Guest.Disk.Length)}} | Sort-Object-down NumDisks
    {ForEach ($VM to $SortedVMs)
    $Details = new-object PSObject
    $Details | Add-Member-Name name-value $VM.name - Membertype NoteProperty
    $Details | Add-Member - MemberType NoteProperty-name CustomFields-value (($VM.)) CustomFields | %{"$($_. Key) = $($_.) (Value)'}) - join ',')
    $DiskNum = 0
    Foreach ($disk in $VM. Guest.Disk) {}
    $Details | Add-Member-name "drive$ ($DiskNum) path"-MemberType NoteProperty-value $Disk.DiskPath
    $Details | Add-Member-Name "Disk$ ($DiskNum) Capacity (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) Capacity / 1 MB))
    $Details | Add-Member-Name "Disk$ ($DiskNum) FreeSpace (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) FreeSpace / 1 MB))
    $DiskNum ++
    } # end foreach nested
    $Details.PSTypeNames.Clear)
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VMGuestDisks) '
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VM) '
    $Details
    } # end foreach

    When you use the Get view as seen on the first line of the script, it appears the CustomField information not available in the generated view.  How to develop the view to include CustomFields/CustomAttributes for each virtual computer in our environment and then report on their subject?

    Please let me know if I did a poor job explaining the scenario and what I'm after here.  Any help is greatly appreciated!

    Hello, jSun311-

    Yes, you are right - there is no such thing as the "CustomFields" property on a managed object VirtualMachine .  You can always get the names and the corresponding values of the custom fields, you just have a little.  For example, you could change the line to:

    ...## make a comma-separated string that holds the custom field key/value pairs, like "cust0 = myValue0,cust1 = myDateInfo"$Details | Add-Member -MemberType NoteProperty -Name CustomFields -Value (($VM.Value | %{$oCustFieldStrValue = $_; "{0} = {1}" -f ($VM.AvailableField | ?{$_.Key -eq $oCustFieldStrValue.Key}).Name, $oCustFieldStrValue.Value}) -join ",")...
    

    and you should be happy as a clam.

    BTW, this call Get-view on your first line could be optimized a little using the - Filter parameter, like:

    $AllVMs = Get-View -ViewType VirtualMachine -Filter @{"Config.Template" = "false"}
    

    Pretty minimal in this case, but can be very useful in other scenarios of Get-View.  And, you may want to retrieve only the properties of the managed VirtualMachine object that you plan to use, so that the memory usage is reduced to the minimum, speed is optimized, etc. (do you this by using the - Get-mode property param).

    Anyway, how does do for you?

  • By the way the item values without using the URL for it

    Hello

    I want the value of an element to another page.

    Is there a good tutorials on it? I don't want to use the URL for it, if you understand what I mean.

    Also I would like to learn more about session state in the apex and how it works and how I could display a value of an element stored in the session state. So if you have some good reads on that I would appreciate it.

    d6752e93-BC8D-48f1-b3ef-073ab316b748 wrote:

    Update your profile with a readable handle.

    Also, how do I acsess an element that was previously presented on a page.

    A value of element are accessible anywhere in the APEX using the syntax of reference described in the documentation appropriate session state. The required syntax depends on where the item is referenced. In general, use bind value [: MY_ITEM] syntax in queries SQL for APEX and PL/SQL expressions and blocks; the functions V and NV [V ('MY_ITEM')] in stored program units; and the substitutions of static text [& MY_ITEM.] in the properties of code, templates and HTML component. The actual value returned will depend on where the item is referenced in the APEX show/accept treatment.

    For example that I want to fill a text field empty with a value of an element that has been filled with front page.

    What do you mean by "an element that was filled in front page? Before what? By the presentation of previous page? On the same page layout or a different page?

    Please try to make your questions more clear: How to ask questions

  • Display the field value calculated using the Personalinzation form.

    Hi all

    Here, in the form, I have 4 fields. Display2 display3, display4 display5.

    The values entered into the fields Display2, display3, display4.
    Display5 field would calculate (display2 + display3 display4) / 3

    This, I am able to do this when you save the form.

    But I want to show the display5 once I left display4 or display5 field(before saving) entry.

    Please let me know how to achieve this.

    for the record, that I used in the customization of the form.

    Status tab
    ----------------
    Triggering event: A TIME-NEW-RECORD-INSTANCE
    Trigger object: Q_RES
    Trigger condition: Q_RES_HEAD. THE ARGUMENT PLAN_ID = 221

    Action
    --------
    Object type: agenda
    Target the object: Q_RES. DISPLAY5
    Property name: VALUE
    Value: = SELECT TO_CHAR ((TO_NUMBER(:Q_RES.) DISPLAY2) + TO_NUMBER(:Q_RES.) DISPLAY3) + TO_NUMBER(:Q_RES.) (DISPLAY4)) / 3)
    OF THE DOUBLE

    Thanks in advance

    Hi Adam,.

    Have you tried a TIME NEW POINT INSTANCE on display5?

  • Apex plugins - how to reference the attributes in external javascript plugin?

    Hello

    I created a plugin for item-level.
    It works very well, however I have faced with a new problem - I need to make reference to attributes in the external javascript code of the plugin.

    Here's some of my Javascript:
    function boxesCheck(){
     var itemName = "P" + getAPexVariable("APP_PAGE_ID") + "_DESCRIPTION_ML";  
     var vResult = "";
     
     if(document.wwv_flow.f30.length>0){
       for (var i = 0; i<document.wwv_flow.f30.length; i++) {
           document.wwv_flow.f30.checked=true; 
         
    vResult = vResult + '[' + $.trim(document.wwv_flow.f32[i].value) + '|' + $.trim(document.wwv_flow.f33[i].value) + ']';
         
    }
    }else{
    document.wwv_flow.f30.checked=true;
    vResult = '[' + $.trim(document.wwv_flow.f32.value) + '|' + $.trim(document.wwv_flow.f33.value) + ']';
         
    }
         
    $x(itemName).value = vResult;

    apex.submit();
    }

    function addRow_new(){
    $('#report-standard1').append('<tr class="highlight-row1"><td class="data" headers="CHECK$01"><input type="checkbox" name="f30" value="1" onclick="highlight_row1(this,1)" id="f30_1" /></td><td class="data" headers="LANG"><input type="text" name="f32" size="80" maxlength="100" value="" style="width:85px" size="12" id="f32_1" /></td><td class="data" headers="DESCRIPTION"><input type="text" name="f33" size="80" maxlength="100" value="" style="width:345px" size="46" id="f33_1" /></td></tr>');

    }


    In the above code 2 values has to be substituted by plugin's attributes:
    1st function: var itemName has to receive the plugin's Item Name.
    2nd function: #report-standard1 has to be substituted by plugin attribute.

    How to do it please?
    Thank you!

    Hi Sloger,

    Modify your function to accept two parameters, something like this

    function boxesCheck(pParam1,pParam1){
    //and use them as required within the function
    ...
    .
    .
    

    How you call this function of boxesCheck of your plugin? He must be somewhere in your plugin code.

    Simply pass those two values as parameters

    Thank you

  • Drag and drop the attribute value

    Hello

    12.1.3 Jdev

    I want to create a screen like below with 2 tables. A table lists the names of available teachers. (TEACHER_NAME will be visible and TEACHER_ID is hidden)

    Second table shows the hours for each day. I should be able to drag the name of the teacher at appropriate times (time column is text entry / list of values) and I should be able to record the details (TEACHER_ID should go to the database).

    1.JPG

    I watched the youtube video below and I am able to use the Drag & Drop attribute to copy the values of input/output of the text input text. But I can't drag when the source is an area of table

    https://www.YouTube.com/watch?v=MKthiC8eyLU

    Any help to achieve the same is appreciated.

    Hello

    Its simple. Please find below the code for drag the teacher instead of teacherName id

    Important thing:

    label = "#{bindings." TeachersView1.hints.TeacherName.label}.

    required = "#{bindings." TeachersView1.hints.TeacherName.mandatory}.

    columns = "#{bindings." TeachersView1.hints.TeacherName.displayWidth}.

    maximumLength = "#{bindings." TeachersView1.hints.TeacherName.precision}.

    shortDesc = "#{bindings." TeachersView1.hints.TeacherName.tooltip}.

    ID = "it1" >

      

                                 

    Drag source will look like

        
                              
                                
                                
                                
                              
                            
    

    and dropTarget will look like

         
                            
                              
                                
                              
                              
                                
                                
                              
                            
                            
                              
                                
                                
                                 
                              
                            
                            
                              
                                
                                
                                                   
                              
                            
                            
                              
                                
                                
                                                   
                              
                            
    
                          
    
  • Check the string value when using xdoxslt

    Hello

    I'm new to the BEEP and will have questions in writing this simple code for a model RTF. In plain language, that's what I want to do:

    If (instr(FirstName,'concern',0) > 0 and instr(LastName,'concern',0) > 0 and instr(MiddleName,'concern',0) > 0) then the VNAME variable value "

    on the other

    If (instr(LastName,'1-',0) > 0), then set VNAME variable FirstName

    on the other

    the value of VNAME variable FirstName + "" + name

    Finally... show the VNAME variable

    ===========

    I wrote it, but it doesn't work:

    declared variable... Initialize it to x.

    <? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'x')? >

    String value of control-> - error.

    <? If: (xdoxslt:Instr (lower(coFirstName|| coMiddleName || coLastName), "abuses", 0) > 0)? >

    <? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'')? >

    <? end if? >

    write the variable

    <? xdoxslt:get_variable($_XDOCTX,_'v_RTPMName')? >

    Thanks for the help!

    For a quick overview,.

    InStr is belong to the xdofx family, must be used in this way instead of xdoxslt:Instr()

    For example: If condition 1 0 otherwise true back

    0 then 1 or 0 end if? >

  • What is the difference between the binding and the attribute value of a given tag.

    Hello

    I have a simple question that when use the binding or the value of a given tag.

    for example

    < af:inputText value = "#{bindings." Paramname.inputValue}"label =" #{bindings. " ParamName.hints.label} "> < / af:inputText >"

    Here when I use this trick of links . and what it mean? can you help me with this.

    Thank you

    Hard

    Well Yes you should read the link provided by Timo.

    An example of input text-

    Value is the property, which refer to the value of a inputText.

    Liaison - average you bind this component. If you bind inputText then you will have the object of this inputText. And you can access all the properties of a inputText.

    You can get or set rendered true or false?  get the label of a inputText. or, in short, you can access all the properties of inputText or respective elements.

    After completing the link you can also get the inputText and value.

    Note: If you want to get your hands on all the properties of the component, use the binding.

    I hope it will clear.if not let me know

  • Why didn't - not the attribute Value of entry forms of html text that displays in FF? It appears properly in Chrome-21, IE8, opera 12

    testing simple form html as follows:

    < style type = "text/css" >
    < / style >

    < form >
    User name: < input name = "username" type = "text" value = "Enter name here" >

    Text for the "value" attribute "Enter name here" displayed in the rendering of page in FF 15.0.1, but not very well in other browsers mentioned.

    < / make >

    Hi well, when I come to put these two lines in a .html file, it works for me. could you try doing the troubleshooting steps at the Web sites look bad or appear differently than they should or reset firefox...

Maybe you are looking for