Showing the custom train stop as default activity based on condition

Hi Folks,
I'm using JDeveloper version 11.1.1.5.0. I have requirement where in i have to show the custom train stop as default train stop based on some business logic instead of default activity mentioned as part of task flow with train.
Test Case:
I have a dynamic region where i'm loading diff task flows based on condition. Let us consider i have two task flows TF1, TF2 and One of these task flows (TF2) contains a train.
TF2 task flows has a train with train stops as ts1, ts2 and ts3 and ts1 has been configured as default activity in TF2 task flow
I'm loading these task flows into dynamic region based on my business logic. Currently i'm in TF1 and i'm doing some action in TF1 page. Based on my business logic in one of the button actions in TF1, i have to load TF2 into region and have to set either ts1, ts2 or ts3 as default activity. its not like every time only configured default activity as part of TF2 is shown.
Consider this case. in IF1 i have 3 buttons b1, b2 and b3. When i click on b1, i have to load TF2 into region and ts1 as default activity. Like wise if i click on b2 in TF1, i have to load TF2 abd ts2 as default activity. Like wise if i click on b3 in TF1, i have to load TF2 abd ts3 as default activity.
I have summarized my test case here. Its not exactly 100% same but it more or less like based on some business logic in TF1 i have to load TF2 with specific train stop as default activity.
Please help me in this regard. Is this possible in ADF? if yes provide some pointers.
NOTE:
I'm able to show the specific trainstop as the selected one but its content is not showing. Though i'm able to see my intended trainstop selected but content is always the content related to the default activity configured as part of task flow.
I have used below code to acheive ( setting atleast intended train stop as the selected on)
TrainModel trainModel = TrainUtils.findCurrentTrainModel();
trainModel.setCurrentTrainStop(activityId);
[activity id i'm getting from model it self like java.util.Map<ActivityId, TrainStopModel> mapTrainStops = trainModel.getTrainStops(); and intended activityId is provided}
// note end
Thanks,
Mahipal

Hi Jobinesh,
Thanks for your reply.
When i try to do the navigation with in the task flow i.e. with in the train task flow, i'm able to navigate fine. But for different taskflow, i'm unable to do it.
for ex: in my case i have three train stops ts1, ts2 and ts3. I have placed a button in ts3 and i'm returning the respective navigation el expression to navigate to either ts1 or ts2 in action method of this button. I'm able to do this successfully. but when i come from different taskflow, i'm unable to do this.
I have tried this link as a workaround but it is not working.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf
i have tried this way, but it is not working.
FacesContext fctx = FacesContext.getCurrentInstance();
ExpressionFactory expressionFactory =
fctx.getApplication().getExpressionFactory();
ELContext elctx = fctx.getELContext();
MethodExpression methodExpression =
expressionFactory.createMethodExpression(elctx,
"_adfcActivityRequest./WEB-INF/task-flow-definition.xml#task-flow-definition@*ts3*",
String.class,
new Class[] { });
*//NOTE: ts3 is the activity id of third train stop*
//queue action in region
myspaceRegion.queueActionEventInRegion(methodExpression,
null, null, false,
0, 0,
PhaseId.INVOKE_APPLICATION);
Please let me know any pointers for this problem. is there any example with routers navigation rules which can be called from another task flow.
Thanks,
Mahipal

Similar Messages

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • My iphone 3gs is in recovery mode how do i activate it please help. it shows the message your iphone couldnot be activated because the activation server is temporarily deactivated.

    my iphone 3gs is in recovery mode how do i activate it please help. it shows the message your iphone couldnot be activated because the activation server is temporarily deactivated.

    This usually happens if the phone has been Hacked / Jailbroken / Modified...
    Is this the case...?

  • Set the custom background images to default?

    Is there any way to set the custom background image to default instead of manually changing the background image in the phone?

    This was actually discussed some time ago. Please see this link.
    http://www.voipintegration.com/software.html
    See discussion here:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Telephony&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40^1%40%40.1ddd4505

  • Hi there. I have 3GS and tried to up-date it today (19 Feb 2013) with iTunes and now I can't activate it! it shows the "Your iPhone could not be activated. tha activation server is unavailable...". The iPhone has never been jailbroken!!!

    Hi there. I have 3GS and tried to up-date it today (19 Feb 2013) with iTunes and now I can't activate it! it shows the "Your iPhone could not be activated. tha activation server is unavailable...". The iPhone has never been jailbroken!!!
    - have tried restor
    - have tried recovery mode
    - have tried on 2 PCs
    ... can someone tell me what to do! I'm tryin for 5hours now!

    no! i havent change my carrier still the same

  • Can't print- 27" 2013 iMac-my epson stylus 3800 pro will not print-i updated driver n added printer in syst prefs-When i print the printer queue opens and shows the job as "stopped"-Supply level "information is not available"-maybe part of problem...thx

    I can't print from my  27" late 2013 iMac.  I am using an epson stylus 3800 pro.  I updated driver and added printer in system preferences. When i print the printer queue opens and shows the job as "stopped".  Supply level shows  "information is not available which maybe part of problem...thank you

    The first thing you could try is a reset of the printing system. Please note that this action will remove all printers and scanners from the Printers & Scanners preference pane.
    With the reset complete, unplug the Epson USB cable from the Mac for a minute and then reconnect it. This action should result in the printer being added again to the Mac automatically. If this does happen, then see if you can print again.
    If the printer is not added again automatically, open Printers & Scanners and click the plus button to add the Epson. Once this is done, then see if you can print again.

  • My ipad shows the message, ipad stop function, please connect to itunes, what shall i do?, my ipad shows the message, ipad stop function, please connect to itunes, what shall i do?

    i forget my lock screen password, after numerous attempt, my ipad shows the message, ipad stop function, please connect to itunes, what shall i do?

    Force iPad into Recovery Mode.
    Follow step 1 to 6 closely to recover your iPad.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • Enabling non-visited train stops by default ?

    In the af:train, by default, only visited stops and the one immediately following the current stop are enabled.
    However, is it possible to enable non-visited train stops also ?
    In my task flow, in one of the scenarious,when TF starts, control passes to the last view activity, while previos stops are disabled (because not visited yet)
    What I want for previous stops, is be enabled by default, otherwise the user can not visit them.
    Any idea ?
    (JDev 11.1.1.6)

    ok, there is sequential property for that, forget this question...

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • To make a status field readonly on Activity based on condition

    Can anyone help me with the validation formula that I need to use to make the activity status field readonly.
    My condition is :-
    If the Owner Id on the Activity <> login Id, then make status field readonly
    Thanks,
    NG

    Hi NG,
    Not 100% clear on what you are trying to achieve so I thought I'd offer the suggestions I thought most likely.
    1. If the Logged In User does not match the Activity Record Owner, then make the status field read only
    PRE('<Status>') = [<Status>] OR UserValue('<UserId>') = [<OwnerId>]
    i.e. Status value has not changed OR logged in user equal to record owner
    2. If the Logged In User matches the Activity Record Owner, then make the status field read only
    PRE('<Status>') = [<Status>] OR UserValue('<UserId>') {NOT EQUAL} [<OwnerId>]
    +i.e. Status value has not changed OR logged in user equal does not equal record owner. Just remember to replace {NOT EQUAL} with the appropriate syntax in expression builder.+
    Regards,
    Cam

  • Defer train-stop navigation for Custom Processing

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I'm using Train Component in one of the task-flow with 3 train stops. I want to defer the Train stop navigation if the custom validation fails.
    I referred the sample 97 in ADF Code Corner - "How-to defer train-stop navigation e.g. for custom form validation".
    I implemented the code in similar lines. I'm able to see the warning dialog in my application when validation condition is not met. When i click the 'OK' button, I'm able to navigate to the next train stop.
    But when I click the cancel in the dialog and update the view to fulfill the condition, I'm not able to navigate to next stop.
    My Code snippet is as follows:
                   <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" id="t1" var="trainNode" rendered="#{(pageFlowScope.TDMConnectivityChannelTreeBean.hideSearch)}">
                        <f:facet name="nodeStamp">
                            <af:commandNavigationItem id="cni1" disabled="#{trainNode.disabled}" textAndAccessKey="#{trainNode.textAndAccessKey}"
                                                      visited="#{trainNode.visited}" actionListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processTrainStop}">
                                <f:attribute name="trainStopNode" value="#{trainNode}"/>
                            </af:commandNavigationItem>
                        </f:facet>
                    </af:train>
                    <f:facet name="bottom">
                        <af:popup contentDelivery="lazyUncached" id="pt_p1" binding="#{backingBeanScope.trainSourceDialog}">
                              <af:dialog id="pt_d1" title="Confirmation Dialog" dialogListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processDialogAction}">
                                    <f:facet name="buttonBar"/>
                                    <af:outputText value="Source Channels are not selected, Do you want to navigate to Target Connectivities?" id="pt_ot1"/>
                               </af:dialog>
                         </af:popup>
                    </f:facet>
            Please let me know if I'm missing something here.
    Thanks
    Ravi

    Frank,
    I tried to put the following code in the action listener method and I'm able to navigate to next stop.
                    UIComponent comp = (UIComponent) ADFUtil.evaluateEL("#{backingBeanScope.trainSourceDialog}");
                    if (null != comp) {
                        UIComponent dialog = comp.getChildren().get(0);
                        if (null != dialog) {
                            queueTrainStopEventToRegion(selectedTrainStop.getOutcome(), dialog);
                    }Not sure why I have to do this. Can you comment on this?
    Thanks
    Ravi

  • How do I show the details of a customer when they are logged in a secure zone?

    How do I show the details of a customer when they are logged in a secure zone?
    I want to show the customer details as well as some customer CRM fields that are applied to the customer. None of these are entered via a form, they would be entered by the client. The customer would need to be able to log in to view the information and get an email alert when it is updated. Help!?

    Hi,
    You might want to look into customer service zones which allows customers once logged in to see their case, order and own details. 
    - http://kb.worldsecuresystems.com/133/bc_133.html
    - http://kb.worldsecuresystems.com/kb/customer-service-area-orders.html
    - http://kb.worldsecuresystems.com/kb/allowing-customers-view-update-crm.html
    Kind regards,
    -Sidney

  • When I open a new tab in Firefox (v. 5) the custom background I have selected doesn't show. Any thoughts? Thanks

    When I open Firefox for the first time, the custom background I have displays. But any time I open a new tab while FF is already running the background displays as white- not showing the custom picture I have selected

    Just found out that FoxTab 1.4.2b is causing this problem. Solution? Disable it.

  • [important] click current train stop will run the method

    Hi all,
    I have a question about train stop, I have a train with three train stops, and in the second train stop, I have a method bind to this train stop, if user navigate to the second train stop, this method will run, but in the second train stop, I found that I still can click this page's train stop in the train stop navigation, so this method will execute each time when I click the train stop. Do we have some problems to avoid the issue, I don't want to this method run when click the current train stop, but only run when other train stops navigate to this train stop. Thanks so much!
    Allen

    Thanks for your reply, Arun, my Jdev version is 11.1.1.5, I don't add a switcher component to execute the method, about refreshCondition, it's a attribute? how can I set refreshCondition? I want to know, ADF doesn't have a way to resolve the issue? you know, it's bad that allow the train stop clickable in this train stop, we should don't let this bind method run when click the current train stop. Thanks again!

Maybe you are looking for