retain the value of the component when navigating the workflow

Hello
my English is not very good
I use jdveloper 11.1.1.3.0

I defined a stubborn workflow and 3 view in this btf show 3 page fragment. in each view, I put 2 text entry components.
the problem is when I navigate to a point of view to other view and return, the value of the entry text is reset. Input text is not binding on anything.
is a way to maintain the value of text entry and other components when navigate views without any attachment?

Habib

Hello

A solution would be to store your values to pageFlowScope. By doing this, your variables are going to be alive and with the same values as long as you are inside your stubborn workflow. For example,.

You can create your Java Bean and have something like:

String Variable1;
String variable2;
String variable3;
String variable4;

setters and getters for those.

In your values in the inputText fragments would be #{pageFlowScope.myBean.variable1.inputValue} and so on.

Since your bean is created once when creating your workflow (choose pageFlowScope) your variables will remain the same as your living taskflow.

hope this helps

Tags: Java

Similar Questions

  • A the value of a component when java script function call

    Hello

    I got 2 items that are of type "text field (people with disabilities, saves state). The elements are 'P2_Industry' and 'P2_Industry_segment '. Have a link next to the label of each element, so a pop up opens. Industry popup displays all industries and from a given industry, the industry segment pop up shows that the corresponding industry segment. Now, there is a problem. Once an industrial and a segment of the industry is selected, if we change the industry, the segment of the industry does not change, which is not fair. I want that the value of the field segment industry to become null when the industry field is changed. Thought to write an html onChange attribute of cells element, but do not know why it does not work in the case of the item "text field (people with disabilities, saves state). It works very well for any "text field.
    Could someone please help me with a solution that the article must be of type "text field (people with disabilities, saves state).

    Thank you
    Vignesh

    Hello

    Try this

    
    

    BR, Jari

  • Help! How to retain the OutputText component status in the browser when the restore operation is called?

    I managed to apply the texts of edtiable as output check the CAPTCHA function by using clientListener and serverListener. a group of texts are displayed using the tags < ad: iterator > in the output page, when you click on a text of output, it is alternated with the status of selected or deselected.

    then click on the button restore to call the application module restore operation, chose these texts out status will be clean in brower he but correspong values on the server side are still in selected state.

    My problem is that how can I retain the OutputText component status in the browser when the restore operation is called?

    I have also some ADF DURATION issues:

    a. when operation rollback is called, will be updated on all the components in the page?

    b. when I set "binding" compenent properties < ad: iterator > related to the backing bean property, why is there only one child to < ad: iterator > compenent: activeOutputText, not a collection of activeOutputText?

    c. when I try to set the property 'id' of activeOutputText with #{terminalItem.AbbrTerminalM} and run and it prompted this invalid id value. real value of this EL is alphabetical.

    JSF page:

    
            <af:resource type="javascript">
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'terminalCodeChecked' : isChecked},  false);
                }
               
               
            </af:resource>
    
    ...
    
    
    <af:iterator id="i1" value="#{bindings.TerminalView11.collectionModel}" var="terminalItem" rows="100">
                                                <af:panelGroupLayout id="pgl6">
                                                    <af:activeOutputText  value="#{terminalItem.AbbrTerminalM}"
                                                                         id="aot1" clientComponent="true"
                                                                         inlineStyle="cursor:pointer; ">
                                                         <af:clientListener type="click"
                                                                           method="processTerminalCodeClicked"/>
                                                         <af:clientAttribute name="terminalCode"
                                                                        value="#{terminalItem.TerminalC}"/>
                                                         <af:serverListener type="terminalCodeClicked"
                                                                       method="#{pageFlowScope.yardPlanControllerManagedBean.processTerminalCodeClicked}"/>
                                                     </af:activeOutputText>
                                            </af:panelGroupLayout>
    </af:iterator>
    
    

    Managed bean:

    private List terminalCodeList = new ArrayList();
    ....
    public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
    
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              terminalCodeList.remove(terminalCode);
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
          }
          if(terminalCodeList!=null && !terminalCodeList.isEmpty()){
             setValueToSession("currentTerminalCodeList", terminalCodeList);
          }else{
               FacesContext ctx2 = FacesContext.getCurrentInstance();
               FacesMessage msg2 = new FacesMessage(FacesMessage.SEVERITY_ERROR,"no terminal is selected!", "Please at least select one terminal!");
               ctx2.addMessage(null, msg2);
          }
    }
    
    

    I managed to reslove parts of the problem and the selected state of the output text can be kept now.

    Remember the State selected in the list in bean managed, trigger refreshing of the page layout group containing all the output text and selected status of the output is determined by inlineStyle = "#{pageFlowScope.yardPlanControllerManagedBean.terminalInlineStyle"} "

    JSF page:

    
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var abbrTerminalM = source.getProperty("abbrTerminalM");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      //source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      //source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'abbrTerminalM': abbrTerminalM, 'terminalCodeChecked' : isChecked},  false);
                }
    
    
    
     
      
        
        
        
        
       
     
    
    

    Managed bean:

      private List abbrTerminalMList = new ArrayList();
    
        public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          String abbrTerminalM = (String)clientEvent.getParameters().get("abbrTerminalM");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              if(terminalCodeList.size()>1){
                  terminalCodeList.remove(terminalCode);
                  abbrTerminalMList.remove(abbrTerminalM);
              }
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
              abbrTerminalMList.add(abbrTerminalM);
          }
         AdfFacesContext.getCurrentInstance().addPartialTarget(terminalsPanelGroupLayout);
        }
    
        public String getTerminalInlineStyle() {
            String inlineStyle = "cursor:pointer;";
            if(terminalActiveOutputText != null){
                String abbrTerminalM = terminalActiveOutputText.getValue();
                if(abbrTerminalM != null && abbrTerminalMList.contains(abbrTerminalM)){
                   inlineStyle = "cursor:pointer;background-color:#94ff94";
                }
            }
            return inlineStyle;
        }
    
  • Loading the main page halfway when Firefox starts - all other elements as the bar side and toolbars is loading properly. Height adjustment manually retains the setting for navigation all in session but don't remember setting when closing down.

    Height adjustment manually retains the setting for navigation all in session but does not remember to reset when closing down.
    Something was clicked inadvertently, but don't know what or how as Firefox worked fine a couple of days. Version 3.6.3. Help please

    Positions and sizes of windows are stored in localstore.rdf in the profile folder.

    Localstore.RDF to remove or rename the localstore.rdf.sav file in the profile folder to test whether the file is corrupted.

    See http://kb.mozillazine.org/Corrupt_localstore.rdf

    (attention: do not delete the localstore.rdf file in the Firefox program installation folder)

    Note:

    Delete the localstore.rdf file will reset the default toolbar customizations.

    You can rename "localstore.rdf' to 'localstore.rdf.sav' to test whether what it solves.

    Then, you can restore the customization by copying "localstore.rdf.sav" to "localstore.rdf" if she did not.

  • DBAdapter retains the unique causing value sequence force error

    Hi gurus BPEL.

    I am facing a problem in EBS integration of the invoice of the OTM.
    AP invoice header is inserted, the AP invoice lines does not get inserted due to the below error in BPEL. Import of payment fails, as there are no invoice lines.


    Anomaly of the non-recoverable system:
    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run reference"insert"operations have to: DBWriteInteractionSpec Execute Failed Exception." insertion failed. The descriptor name: [APInvoice.ApInvoicesInterface]. Caused by java.sql.BatchUpdateException: ORA-00001: unique constraint (AP. AP_INVOICE_LINES_INTERFACE_U1) violated. Check the logs for the record output full DBAdapter before this exception. This exception is considered non reproducible, probably due to an error of modeling. To be classified as reproducible rather add property nonRetriableErrorCodes with the value "-1" for the deployment descriptor (i.e. weblogic - RA.Xml). Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff. All properties are integers. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.


    SOA DB Connections seem to retain the sequence used in the cache and assign the same when the Bill for the line is inserted. This causes the Unique constraint error when inserting the table of AP invoice lines in EBS.

    I call the standard APInvoices.wsdl to make the insertion AP_INVOICE_LINES_INTERFACE. I noticed that in the file APInvoice - or - mappings.xml contains the following code
    > the sequence name < AP_INVOICE_LINES_INTERFACE_S < / sequence-name >
    < table sequence-field = "AP_INVOICE_LINES_INTERFACE" name = "INVOICE_LINE_ID" / >
    < / sequencing >
    < cache >
    weak-reference < cache-type > < / type of cache >
    <-cache size >-1 < / cache size >
    true < always refresh > - < / always refresh >
    < / cache >
    < remote caching >
    weak-reference < cache-type > < / type of cache >
    <-cache size >-1 < / cache size >
    < / remote caching >

    Is their anything I can change something in the BPEL process to refresh the cache of the sequence all the time.

    Alternative, I think now is below.
    1. check with customer if they can do the sequence AP_INVOICE_LINES_INTERFACE_S as NOCACHE.
    2. pull the invoice line via pl/sql adapter and complete the invoice line. But in this case, I'm not sure if Web APInvoice service code will try to update with the generated BPEL sequence.

    Any direction on this issue will be of great help.

    Thank you
    Shobz

    Hi Anushal,
    Thanks for the reply.

    Hi all
    The problem has been resolved with the creation of this «sequencePreallocationSize» DBAdpater
    As this property is set to 50 DB adapter's default, it did not fit with the INCREMENT BY the AP_INVOICE_LINES_INTERFACE_S sequence that has been set to 1.

    What happens in the adaptor DB is, when the first record is created, it takes the nextval in the sequence (assume it is 20), however it uses then his own sequence internal for the next 50 files by reference to the value set in this property (by creating records with primary keys from 20 to 70) and only when this internal sequence is exhausted it will return to the sequence of database.
    Meanwhile, any other inovoice created AP would recover DB, which could be his word to say value 21, in conflict with the inserted by BPEL, throw a unique constraint.

    Setting this property to 1 or corresponding increment sequence solved the problem.

    Thank you
    Shobz

  • Since the upgrade to 8.0, when navigation between screens, my computer screen becomes black for 1 second before the screen is redrawn. This happens regularly and is a major nuisance. It simulates a power failure. It does not happen with IE.

    Since the upgrade to 8.0, when navigation between screens, my computer screen becomes black for 1 second before the screen is redrawn. This happens regularly and is a major nuisance. It simulates a power failure. It does not happen with IE.

    Here I answer to my problem: I upgraded my graphics card and the problem seems to have disappeared.

  • Microsoft windows media player does not retain the previous size. is irrtating so me gift of reorganize its size every time when I open it.plz help I want stable wmp version 11

    Microsoft windows media player does not retain the previous size. is irrtating so me gift of reorganize its size every time when I open it.plz help I want stable wmp version 11, version 12 is sucks.

    Hello, Simone

    I'll assume you're on Windows 7. Windows Media Player 12 is not supported on Windows Vista or XP and as such, you will need to go back to Windows Media Player 11.

    You can check the permissions in the registry to ensure that it is able to record information.

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.

    Open the registry editor by clicking on start, type regedit.exe in the search box and press on enter, you may be prompted to continue.

    In the registry editor, navigate to HKEY_CURRENT_USER, Software, Microsoft, MediaPlayer, then Preferences.

    It should be an element named LastLocation_26, right-click on it and select Rename, and rename it to old LastLocation_26.

    Leave the open registry editor and open Media Player, then move it to your favorite place and close Media Player.

    In the registry editor, press F5 on your keyboard and check if LastLocation_26 has been recreated.

    If this is not the case, there is probably a permissions problem.

    If so, the location must be registered.

    Let us know.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to automatically complete a transitional according to the value of another attribute when attribute line is questioned in the VO?

    Hello world

    The task seems simple enough, but I have not found a way to populate an attribute transitional according to the value of another attribute when the line is queried. What is the best way to achieve this?

    Thank you.

    James

    Use VORowImpl, if you have any transient attributes defined in the view object, whose value is derived from other attributes of the line, you can override the GET method and add logic there

    Please note that this class represents a row in the results collection in a display object.

  • Script where the zero is not displayed when no value is selected, indicates when a value of zero is selected

    How can I write a calculation script where the zero is not displayed when no value is selected, but when a value field null is selected as part of the zero calculation will show?

    Option 1 has a score of 0 value

    Option 2 has a value of 5 score

    When someone chooses option 1, I want the value 0 to appear at the cell of notation.

    Here is the script that I have so far:

    If (event.value == 0 | event.value == ") event.value =";

    OK, the custom calculation script could be:

    Get the value of the checkbox field

    var v = getField("checkbox1").value;

    Set this field value

    V = Event.Value = "Off"? "" : v;

    Replace "checkbox1" with the actual name of the checkbox.

  • Possible to ignore certain datagrid cells when navigating with the keyboard?

    Hello

    I have some data entry forms based on a datagrid control.  Users typically use the keyboard navigation (tab, enter, etc.) when you fill in the data in the cells.  According to various criteria, some cells may not need to be filled.   I don't competely disable them... just make them ignored in the navigation to the default keyboard.

    In other words, I want to make these fields 'disabled' with a silver background (no problem here) and I want to that they be ignored when navigating by keyboard.  However, I want them to be able to enter data into these fields if they specifically click on it with the mouse (essentially a substitution).

    Make sense?  This sounds like a requirement unusual and potentially difficult to implement.  Hoping someone here can tell me how it's going to be easy

    Any suggestions it if possible and maybe some tips?

    Thank you!

    For the regular DG, you are supposed to call preventDefault on ITEM_EDIT_BEGINNING and editedItemPosition to a new position of the cell.  I think that works for ADG, but I could be wrong.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Get the workflow parameter value before the end of the SOAP client workflow execution

    I'm calling webservices SOAP Orchestrator of my request to run a workflow. I want to get a parameter/attribute value before execution of the workflow.

    Brief:

    I have a XYZ workflow that adds two numbers provided by my application. After that my workflow perform some other features that say 5 minutes.

    My application is the result of the addition from the addition is performed. I don't want to wait for these 5 minutes to finish after what my worlkflow is finished and then obtain the result.

    Hello DeepakPN - first of all, if you use vCO 5.x, we strongly recommend to use the api instead of the old api SOAP REST.

    Now, to answer your question:

    When you run a workflow, the returned soap body includes a return workflow id: this is your workflow token id - essentially the Runspace of your workflow. He looks a bit like this:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
    

    There are several additional lines less than retail, but I left it as an important component of the info here is this tag . The value that it contained should be used with the operation "getWorkflowTokenForId". By providing this ID and your credentials, the resulting SOAP body will contain details of your performance at the time of your request. So, if you have your amount stored as an attribute at the time that you run the query, you will see the results. For my simple test, here is my operation "getWorkflowTokenForId" for a test flow that I came through SOAP:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
                Any Test
                1a568e2e-5c15-4b68-9bab-20cb955f0004
                item0
                completed
                completed
                
                20131025120447-0400
                20131025120447-0400
                
    
    
    >
    >
    
    
    
    ]]>
             
          
       
    
    

    Inside the tag, there is a tag that contains each of my entries/attributes. In the code above, 'anyInput' is the input parameter for my workflow and of the "inputTypeName" as an attribute.

    Hope this helps

  • Missing values in the workflow

    I copied the 'Clone the virtual machine, no customization' workflow and created a wrapper for it where I put all the values except the name of the virtual machine that will be created. Then I used the plugin Firefox REST Client to do a POST for the REST of the workflow endpoint and include the value of the name of the computer like this:

    {

    "settings":

    [

    {

    "value": {"chain": {"value": "newVM001"}},

    "type": "string",.

    'name': 'name '.

    }

    ]

    }

    This set works as expected and a new virtual machine is deployed with the name I said. Awesome!

    Now, I take the exact code and drop it into my app, set all required values and test my REST call. The workflow is started, but it fails with the error:

    Cannot create VcVirtualMachineRelocateSpec: TypeError: cannot read a 'parent' of undefined property (name of the dynamic Script Module: getRelocateSpec #8)

    After chasing down the issue for some time, I discovered that all the values I put in my wrapper are reports such as undefined/null. Thus, for example in the getRelocateSpec Action, 'pool' and 'host' are not defined when I send the request in my application, but they have values defined the package when I send the request via the customer REST FF.

    Is this a bug or am I missing something here?

    Just to be sure, I tried with JSON and XML, same case. I see the new VM name being received by the flow of work, but for some reason, all the values defined by the wrapper were wiped out.

    The following XML code:

    " <-xmlns = execution context" http://www.VMware.com/VCO "> "

    < Parameters >

    < description parameter = "VM" type = "string" name = "name" >

    < string > newVM001 < / string >

    < / parameter >

    < / Parameter >

    < / execution context >

    I managed to solve the problem. The account I used to run the workflow has not been correctly permissioned. Once I brought the permissions that everything worked as expected.

  • change the background while retaining the shadow.

    I did a shoot of model with a bright light, the shadow is really strong, but I want to change the color of background to a specific temperature R:238 G:238 B:238, while retaining the shadow can someone help? I have attached an image low resolution I want to apply it to:15-07-13 Leo Joseph0077.jpg

    Thank you!

    Hide the model, use curves to adjust the background and shadow to the new values using an adjustment layer curve.

  • remove the level 0 division, while retaining the level 1 totals

    I would like to eliminate any division of level 0 (from this particular tree) but would retain the totals at level 1 and level 0 would. How can I do this? for example

    Company 1
    Sub has
    Sub B
    Sub C


    I want to delete Sub A, B Sub and Sub C, but keep company 1 and all data. If I just delete the submarines, nothing will be in company 1 because they are additive. all are set apart ever.

    Are you talking about a database of ASO or OSB?

    If ASO, you need to get out somehow this data value 1 company, remove members and then load value of company 1 on itself. This is because a cube ASO does not store the data at all levels except level 0.

    If the OSB and you have aggregted the databsae, what makes you think that there will be a data value 1 company? This can often be sen as a curse, not a blessing and goes under the name of "ghost". It can be quite a pain in the you-know-what to identify these data points if a massive deletion occurred but the top-level regrouping numbers do not change.

    Kind regards

    Cameron Lackpour

  • Question when the workflow started the same session

    Hello world
    I'm having a weird problem. When I start the workflow for the first time, it is stuck at a certain "Activity A" activity with a status of 'Active'. When I start the workflow from the same session for the second transaction, the first transaction is completed and the other is still stuck in the same activity. It continues when I start the workflow from the same session.

    But when I close this session, the last transaction of this session is permanantly stuck to the activity with a status of 'Active'.

    When I open another session and submit the first transaction, once again the same pattern repeats itself.


    The code of the activity where it gets stuck is:
    PROCEDURE PROCESS_REQUEST_SUBMIT (itemtype in varchar2,
    ItemKey in varchar2,
    actid number,
    funcmode in varchar2,
    Out out result NOCOPY varchar2)
    IS
    l_sundry_listing_number varchar2 (30);
    number of l_approval_sequence;
    l_action_by varchar2 (240);
    l_count number;
    BEGIN



    l_sundry_listing_number: = wf_engine.getitemattrtext(itemtype,itemkey,'TRANSACTION_ID');

    Select count (*) in the XXCED_SUNDRY_WF_ACTION_HIST l_count
    where sundry_listing_number = l_sundry_listing_number;

    If l_count = 0 then
    l_approval_sequence: = 0;
    on the other
    Select max (approval_sequence) in the l_approval_sequence of XXCED_SUNDRY_WF_ACTION_HIST
    where sundry_listing_number = l_sundry_listing_number;
    l_approval_sequence: = l_approval_sequence + 1;
    end if;

    l_action_by: = wf_engine.getitemattrtext(itemtype,itemkey,'REQUESTOR_NAME');

    INSERT INTO XXCED_SUNDRY_WF_ACTION_HIST
    (SUNDRY_LISTING_NUMBER,
    APPROVAL_SEQUENCE,
    ACTION_BY,
    ACTION,
    ACTION_DATE
    )
    VALUES
    (l_sundry_listing_number,
    l_approval_sequence,
    l_action_by,
    "Submit."
    TO_CHAR (sysdate, "DD-MON-YY HH24:MI:SS)
    );

    COMMIT;



    END PROCESS_REQUEST_SUBMIT;


    Can someone help me with this problem please?


    Thank you
    Rambeau

    Hello

    So that the workflow must be started correctly, something MUST validate the transaction - be it in your procedure that starts the workflow, or anything that calls this procedure. If there is no commit, then when the session disconnects, it restores the workflow.

    So, try

    begin
    XXCED_APWFL006_SUNDRYAPPR_PKG.Initiate_Workflow(transaction_id=>'SUNDRY-0001',
    requestor=>'AMBALAR');
    COMMIT;
    end; 
    

    SQL * more and see what the results are. If it works, the problem is within your call to call the workflow without a validation process.

    Matt

    Published by: Darryl Burke - advertising and deleted links

Maybe you are looking for

  • Re: Blank screen on start page - Satellite L

    The screen rises, but there is no bar or not started down x at the top.I can not click out of it because there is nothing for me to click on the page. Then when I alt + ctrl + del it opens the Task Manager, but the page is not listed on it, so I can'

  • Scanning in color

    Dear Experts, I work on Windows XP Home Edition, Service Pack 3.   My printer is an HP PSC 1510 all-in-one.  Sometimes I scan a newsletter and photo to E/Mail.  Q. How can I do this in color, as the image scanned when sent is in black and white. NB. 

  • communication of 64-bit application with 32-bit application on a PC?

    In a project of image processing, we started using x 64 LabVIEW to meet our need expanded memory. However, in order to communicate with the production plant is integrated in the machine, we wanted to use a Profibus DP - COMSOFT PCI card, which is a n

  • Spore execution returns an error indicating that DirectX is not available

    I recently downloaded the EA game Spore.  Every time I try to run in I tells me that my DirectX is not available.  I tried troubleshooting and nothing helped.  When I try to install DirectX from the microsoft website it tells me that I already have D

  • No programs don't run after hibernation

    When put into hibernation, it goes into hibernation, and then it restarts without running programs