Conditon in control flow that needs sequencing

Hi,
Is there a way to make two Analysis Services DDL tasks, that can potentially run in parallel in a control flow (according to a condition) to run sequentially via configuration ?

just create  a variable of type boolean in ssis. set default value as False. then in control flow have three tasks, one execute sql task and your two analysis services DDL tasks
Give a dummy statement inside execute sql task like say SELECt 1 after defining a db connecton. link the execute sql task to one of analysis services ddl tasks ( say ddl1). Change precedence constraint option as Expression and Constraint, set constraint
to OnSuccess and Expression to
@Variable == False
add the other analysis services ddl task (dd2) and dont connect anything to it. take the output from it and connect to dd1 and give precedence constraint option as Expression and Constraint, set constraint to OnSuccess and Expression to below
@Variable == True
Also set Multiple constraints option as Logical OR for ddl1
This will make sure when variable is true ddl2 executes first followed by dd1 and when variable is 1 they execute parallely
You can change variable value through configuration (XML file/SQL table value)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Need to see the flow that process followed

    Hi All,
    I have created a BPM linked with WDJ application which is working fine.
    But is there any way I can see what steps were followed in particular process.
    I can see the process flow that is designed and green dot at the current step.
    Can i see the path highlighted that process followed ?
    Need help
    Thanks in Advance
    Bhagyashree

    In the process repository where you selected the process instance and clicked on 'Show Process Flow', select your Process Instance, scroll down and click on the 'History' Tab. You will get the detailed flow of execution (commonly in descending order).
    For advanced flow execution details and error details, select 'Advanced' from the dropdown list here.
    Hope this helps.

  • Need help with control system that reduces a flat output signal every time a certain input exceeds given value

    I'm having difficulty setting up a closed loop control system that reduces one of my voltage outputs (connected to a high voltage system) by 30% every time a measured voltage exceeds a certain threshold value.  I'm using a USB 6229 DAQ.  I've been trying to create a waveform that looks like a DC signal, but the only waveforms that I can seem to manipulate while my VI is running are the stock waveform types.  Also, I've tried to use a formula node or conditional structure to update the output value every time the measured voltage exceeds a given value, but everything I do reinitializes the output value every time it runs or won't store the previous signal value.  I'm using LabVIEW 8.6 and don't have the PID or similar express VI's.  I've attached the mess I've got working right now.  Can anyone help?  I'm really stuck!
    Thanks! 
    Attachments:
    HiV step down.vi ‏40 KB
    output control.vi ‏100 KB

    I'm sorry it's such a mess; I'm still pretty new at this.  These are both little driver programs for a larger overall control program. 
    Output control is meant to send a flat signal to the DAQ whose value can be manipulated while the VI is running.  I have the second activated segment merely to check the values being output.  I didn't realize I attached a version with a meaningless control...I had a control where the user would put in the stating voltage (the high voltage source has a 1V-100V setting for external control).  I've attached this slightly different but equally dysfunctional version.  Ideally, I would have liked something like the analog signal generator vi to come with an input wiring for offset on the DC signal.  Most of the code was diabled because it is copied from an example; it is largely rubbish.  I initially used the DAQ Assistant, but when things weren't working out I switched to putting in each step manually to try to troubleshoot.
    As far as HiV step down is concerned, I've tried something different with a nested case structure (if that's the right terminology?), and I've attached that file.  I think this problem has been solved, but you never know!
    Attachments:
    output control slightly different.vi ‏100 KB
    HiV step down w case structures.vi ‏44 KB

  • Use control flow statement to evalute signals

    Hi,
    I have a number of steps in my sequence file such that when TS runs it looked like this:
    SignalA >20       pass
    Signal B <= 30   pass
    Now I wish to use some control flow statements like While and If loops so that I could create steps like this:
    While ( SignalA > 20)
    Problem is there are no "SignalA" in the TS expressions.  I tried putting together an expression like RunState.Sequence.?? (some unique id of the step)Result.step = "failed".  But the While loop can't seem to evaluate to True
    Any suggestion would be appreciated.
    Thanks!
    ph2

    Hey ph2,
    I'm not sure what your goal is with this but there is probably a better way to accomplish what you want.
    Where is SignalA coming from?  A VI?  A dll?  Do you only have to acquire it once or do you need to get it every iteration of the loop?  Is the step that acquires it inside the While statement or is it an asynchronous thread?  Why not just store it to a Local or FileGlobal and then access that.  It would be easier.
    BTW- If SignalA > 20 step is a Numeric Limit then you can access it by using Step.Result.Numeric. 
    Let me know exactly what your goal here is and I could possibly help you find a better solution.
    Cheers,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Bounded-Task-Flow Page Fragment Control Flow Help

    jDeveloper: 11.1.1.0.2
    I am having an issue trying to figure out the correct way to use control flow cases between a bounded-task-flow with page fragments and an unbounded-task-flow page. We have taken the approach in our application to have a few shell / container pages to host bounded-task-flows made up of page fragments to facilitate re-usability and to speed up development. There are 4 or 5 shell pages on the applications unbounded-task-flow. As of now, we have about 20 page fragments that are implemented as bounded-task-flows. These fragments don't do much now, meaning there is only a single fragment in each bounded-task-flow. The issue I am having is trying to invoke a control flow navigation action from one of the fragments to load a different shell page.
    For Example, shellPage1.jspx contains fragment-flow-1 as a region. In my adfc-config.xml I have shellPage1.jspx and shellPage2.jspx, with control flow cases "toShell1" and "toShell2" respectively connecting the two pages. I have a link's action bound to the "toShell2" within the fragment that makes up fragment-flow-1. When the application is run, shellPage1.jspx and its fragment are displayed. But clicking on the link in the fragment ("toShell2") does absolutely nothing. It does not navigate me to the shellPage2.jspx as expected. What am I doing wrong here or do not understand?
    If the fragment is included as a JSP include, and not a bounded task flow include, everything works as expected. This is not desirable as we then need to copy the fragment's pageDef into the shellPage's pageDef to get the DataControls to function.
    If the faces-config.xml is used instead, and a JSF navigation case is used, it will also work as expected. This is not desirable because we really don't want to be mixing adcf-config and faces-config.
    So I am really stumped here.... Thanks in advance!

    Hi there:
    In your case, the adfc-config.xml has the control flow case between shell pages. And the task-flow-N.xml or your-task-flow.xml for each page fragment by default doesn't inherit control flow case from their containing shell page. In your case, in the page fragment task-flow.xml, you should add a "Parent Action" to flow to shell page2 for example. The outcome of "Parent Action" would be "toShell2" if calling from ShellPage1 page fragment.
    Is this 'Correct' or 'Helpful' for you? Please mark it as so if it does.
    Good luck,
    Alex

  • Tutorial on AWT/Swing control flow

    Greetings all,
    Just wondering if any of you folks know of a good tutorial on AWT/Swing control flow? I'm doing some pretty complex stuff with a table whose editors call other windows and insert values into the table based on callback objects...weird stuff happening with loss of focus when the other windows come out, etc etc etc.
    I have it working via a series of what I consider kludges, but I would really like to implement it cleanly, and it's looking like that's going to require understanding <ugh> <grin>
    So it looks like it's time that I bit the bullet and got to grips with control flow in AWT/Swing. Is there a tutorial out there that could help me with this?
    Many TIA

    skiaddict1 wrote:
    Let's take your word for it, but if you have the slightest doubt please consider the subject: EDT violation is a classic here.OK sure, but I really don't think I'm violating it. I avoid multi-threading like the plague, and only introduced it for my report writer because I wanted to have a little window advising the user that the report was in the process of being written.Raise your left hand and swear this report writer is not running when you experience the problem you describe! >o(
    OK, this is just kidding, as per the rest of your description, it sounds reasonable now to assume that your problem is not related to EDT violation.
    I'm doing some pretty complex stuff with a table whose editors call other windows and insert values into the table based on callback objects...This summary is a bit worrying, and I thought you would mention problems in the display of the table being edited. But you seem to refer to problems in other windows, or did I misunderstand?
    Or do you mean, loss of focus in the editor still being edited? Can you please clarify what you do and what your problems are?
    In particular, what does the other windows come out mean?OK, I was trying to be sparse with details because I didn't think they were relevant.Actually the worrying seems all the more justified, now that you have described it more extensively: I was afraid that you would raise other windows while editing, and that's the case. I know little of focus though...
    I have a table in window A, one of whose columns has a custom editor which, when a cell in the column is double-clicked, registers itself with window B as a choice-listener (see later) then asks window B to come to the front. Window B, when the user performs a choice amongst the UI elements in there, fires a choice-event to its listener, i.e. the custom editor. At which point the editor saves away the chosen value (for use by getCellEditorValue()), sets the text in the cell appropriately, turns edit mode off via fireEditStopped(), and brings window A back to the front.
    (...) once the custom editor asks window B to come to the front, the table in window A loses focus and when it is brought back to the front, the table's JScrollPane seems to have the focus (visually, it has the focus rectangle around it). Pressing the Tab key has no effect on focus; you have to use the mouse to focus something.I assume you have read the tutorial on using tables in Swing.
    It contains an example where a custom editor is bringing up a dialog: http://download.oracle.com/javase/tutorial/uiswing/components/table.html#editor
    AFAIK, the example does not suffer from focus problems.
    What I am finding, and I reiterate this is new since I rewrote the windowing subsystem for the app (the custom editor was not changed in the rewrite), is that (...)Just what do you call "rewriting the windowing system" (just to rule out the possibility of something Ramboesque)?
    I have no idea why this loss of focus is occurring, and I am at a loss to begin to figure it out. As I wrote above, I have a series of kludges which gets around the symptoms, but I would really rather figure it out and fix it.OK I admit I cannot tell what happens exactly, but:
    1) instead of bringing window B to front, couldn't the editor bring up a dialog B (e.g. using JOptionPane.showXxxDialog() to bring up just the choice panel? The advantage is that it is more "synchronous", you can control when the window A's table model is updated.
    2) what worries me too is that you update the model of the table being edited while you're editing one cell of it? Would it be possible, and make sense in your case, to update this model later (that is, post the model update as an invokeLater(...) call)? I don't see how seeing the table updating underneath helps the user editing its cell, but you may have your reasons.
    What do you call flow control , or control flow in AWT/Swing?Basically, what I am after is something that will help me begin to understand/diagnose problems such as the above when they happen in my code. I am deeply averse to multi-threading (...) Things in my code were working, and that was enough for me.
    But the above behaviour, and another weird behaviour I was having last week, which again I have solved with what I consider a kludge, and again which only began with my new windowing subsystem, have caused me to realise that it's time I really got to grips with this issue.Yes, when they say beware of threads when using Swing , nobody tells to not use threads! Just to be aware of how special Swing is with regards to threads (at least, compared to AWT, that didn't make such warning).
    I would like, for example, to really deep-down understand exactly when listeners for AWT-Swing events get called. I don't really care so much when the events get put on the queue, but I do care when exactly my event handlers will be called. This will help me diagnose problems, I'm sure.Well they get called in the EDT, by some framework code that, in an infinite loop, does something along the lines of:
    - pop next event from the event queue
    - determine which is the target widget
    - let the widget transform the event and send it to all registered listeners
    Now with dialogs, things gets dimmer, because while a dialog is brought up (via a<tt>setVisible(true)</TT> call on the EDT, the EDT is indeed suspended, and a new event thread manages the events for the dialog).
    I'm sorry I have no reference for that behavior, and my description is certainly blurry (and possibly wrong), but I don't think your problem is so much related to threading as I initially thought.
    N.B.: Darryl's second link does features sequence diagrams that try to demonstrate what happen (in a specific example with asynchronous access, but you can derive the simpler, regular, working, from it).OK, yes I saw that diagram, I was offput by the asynchronicity but I will have another look tomorrow also. Thanks againDon't put too much hopes in there, indeed it's definitely not the kind of info I understand you're looking after.
    Much luck all the same, and feel free to come back with your findings, or with more questions, about the initial subject (reference on event flow) and the specific problem (your focus issues with the editor).
    I also cannot end this message without suggesting that you try to reproduce the problem with an SSCCE (http://sscce.org), that you could post here for us to try out. See this recent discussion about the multiple interests of this approach: {message:id=9587964}
    Best regards,
    J.

  • Control flow extraction

    I am looking for a package that gives me the control flow of a given java program. I need this information so that I can do some static analysis on the control flow.
    Can anyone recommend anything?
    Thanks

    Barat (http://pmd.sourceforge.net) provides a very nice object view of Java source (control structures and all). The distribution is very untidy and it relies on the "Poor Man's Genericity" package. It is a pain to use but I like it a lot. Not much of a community behind it.
    PMD (http://sourceforge.net/projects/barat) seems to be a very solid and polished static analysis framework. I haven't used it much. If I remember correctly it gives you an abstract-tree view of the source rather than a coupled object model of it.
    Then again you can roll your own. Both these projects rely on JavaCC/JJTree combo (https://javacc.dev.java.net) to build a syntax tree.

  • Use exception to control flow?

    I use validateExcelFile(File excelFile) to validate whether a file has valid excel format,
    when file is in invalid format, I have two options:
    1) return the error message in validate method:
    public String validateExcelFile(File excelFile) {
    String errorMsg = "";
    if(errorMsg.length == 0) {
    return null;
    } else {
    return errorMsg;
    Or
    2)Throw out a exception containing errorMsg
    public void validateExcelFile(File excelFile)
    throws InvalidExcelFormatException {
    String errorMsg = "";
    if(errorMsg.length != 0) {
    throw new InvalidExcelFormatException(errorMsg);
    The context in which the validate method is invoked needs to delete any invalid excel file according to the validate result, option 2 has the good that if there is another validate method and it also throws out the same exception when a file is invalid then I can place the two method in one
    try{
    validateMethod1( excelFile );
    validateMethod2( excelFile );
    } catch (InvalidFormatException ex) {  // deletes invalid file } statement, it is more clear than to check every method's returned error message, but I doubt whether it is good practice to control flow with exception instead of
    flow statements like if.
    Thanks.
    StuartS
    Edited by: StuartS on Oct 24, 2007 8:35 PM

    TimSparq wrote:
    You are correct, it is best practice not to controll flow with exceptions.
    Perhaps your validate message could just return a boolean and you can do something like:
    if (!validateExcelFile(file)) {
    // delete file
    Yeah, I was thinking of it more from a security validation standpoint, but if you simply want to accomplish an action as the result of a bad format, then you're definitely better off having a boolean function.

  • Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    You can download the trial version (http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html) to convert the PDF back to WORD if you do not have the original. The conversion may not be perfect, but it is typically better than starting from scratch. You may be lucky and get a good result. You might check the settings (in the save screen) to try retain format versus retain text flow. The format version can be a pain to edit since it creates a bunch of text boxes. The flow version may require you to reformat in WORD, but you likely would want to do that anyway.

  • Need Sequence in XML Report

    Hi
    I am doing XML Report in Oracle Apps.
    For that i need sequence..
    I am able to do sequence, but my problem is for every department the sequence must start with 1..
    Ex.
    Now am getting Values....
    Department 1
    1
    2
    3
    4
    5
    Department 2
    6
    7
    8
    Department 3
    9
    10
    11
    12
    But i want as below
    Department 1
    1
    2
    3
    4
    5
    Department 2
    1
    2
    3
    Department 3
    1
    2
    3
    4
    Please help to solve this issue.....
    Thanks in Advance
    Adina

    Would you care to post the code that you are already using to generate your output and then we may be able to assist with changes to it so that your sequences come out differently.
    We can't just give you an answer based on what you are getting as output and what you want as we don't know your code.

  • When I run Advanced System Care by IoBit I always get many privacy issues that need to be removed from my computer and I would like to have Firefox stop this.

    I run Advanced System Care 7 by IoBit on my computer daily. It always finds dozens if not hundreds of privacy issues caused by FireFox that need to be removed. I would like to continue using Firefox but will uninstall it if the program keeps causing so much clutter on my machine. I have a Compaq Presario F730US running Vista Home Premium. I do not want FireFox to place ANY cookies or other items on my computer.

    So first off, Advanced system care is a piece of junk. It does nothing to improve computer security or performance, and can actually harm your computer. I strongly suggest you remove any iobit products immediately and find a real anti-virus.
    Second, cookies can be controlled. They aren't placed on your computer by Firefox, but by websites. You would find that no matter what browser you use you will have cookies from websites you visit.
    [[Cookies - Information that websites store on your computer]] explains what cookies actually are.

  • Dialog control flow case not opening in new browser window

    Hello -
    Using JDev 11gR1.
    I have a page fragment that contains a table of command links like so:
            <af:commandLink text="#{row.id}" id="cl2"
                            action="#{reportRunnerBean.runReportAction}"
                            useWindow="true" windowHeight="500" windowWidth="500">
              <f:param value="#{row.id}" name="reportId" id="p2"/>
            </af:commandLink>the runReportAction method returns the String: "dialog:runReport"
    in my page flow, the page fragment has a control flow case with the outcome "dialog:runReport" that leads to a URL View with the URL setting set to #{pageFlowScope.reportUrl}
    (the reportRunAction places a string in page flow scope with the key of "reportUrl". in case it matters, the url is external to the application)
    When I click on the link, I am directed to the correct URL. However, it does not open in a new browser window - it takes up the main browser window.
    Is there something obvious that I am doing wrong?
    Thank you for reading this,
    -- Scott

    Well, I couldn't figure out why the dialog wasn't working correctly, so I changed my page to use a server listener to handle the logic I wanted and just used af:goLink instead of a command link. That command link above became:
              <af:goLink text="#{row.id}" id="gl1"
                         destination="#{row.reportUrl}"
                         targetFrame="_blank">
                <af:clientAttribute name="reportId" value="#{row.id}"/>
                <af:clientListener method="logReport" type="click"/>
                <af:serverListener type="LogReportEvent"
                                   method="#{reportListBean.logReportInvocation}"/>
              </af:goLink>with the following client listener:
        <af:resource type="javascript">
          function logReport(evt) {
              var component = evt.getSource();
              var reportIdParam = component.getProperty("reportId");
              AdfCustomEvent.queue(component,
                                   "LogReportEvent",
                                   { reportId: reportIdParam}, false);
        </af:resource>and code in the bean:
        public void logReportInvocation(ClientEvent clientEvent) {
                String reportId =
                    (String)clientEvent.getParameters().get("reportId");
                //...do something w/reportId here...
        }Thanks to anyone who took the time to read this.

  • Need advice on how to handle off site computers that need imaging.

    Hi
    Our SCCM server is at our main campus, across the street from our campus, I have 16 computers  that need imaging that are in a totally separate building that is linked to the main campus via microwave.
    Could I copy the wim file to a portable drive and take it across the street, is there a way to image these computers and have it run a task sequence from a portable drive? if not, do you have any advice. I don't think the microwave could handle a multicasting.
    Any advice would greatly be appreciated.
    ps: the wim file is about 22 gig.

    Hi,
    You could create a standalone media to perform the OSD.
    http://technet.microsoft.com/en-us/library/bb681017.aspx
    Regards,
    Hau 

  • Programatically calling control flows from java code

    Hi all,
    I have a bounded taskFlow that uses pageFragments. This flow is a region in a page(.jspx).
    In my page fragment, I have a inputComboboxListOfValues with a ValueChangeListener code in a java bean.
    I want when a value is changed, to programatically call "controll flow" (this one has: "From Activity Id" -the page fragment with that inputComboboxListOfValues, and "To Activity Id" - the default Activity on this task Flow).
    So when the value change, practically I want to restart the flow programatically and pass the selected value as input parameter.
    Since the inputComboboxListOfValues is not like a button where in the "Action" property you can set the Control Flow and navigate somewhere, the only option I have is to programatically cause navigation from java code (example: the value change listener code).
    Can this be achieved?
    Any advice is helpfull.

    Hi,
    Absolutely, you can do it using the NavigationHandler. Try the following in you value change listener:
    FacesContext context = FacesContext.getcurrentInstance();
    NavigationHandler handler = context.getApplication().getNavigationHandler();
    handler.handleNavigation(context, null, outcome);
    // Render the response after that phase, the button actions should not be called
    context.renderResponse();
    // Add the following line if you want to prevent further value change listeners to be called
    // throw new AbortProcessingException();Regards,
    ~ Simon

  • From where i can understand the control flow and architecture of JVM?

    i want to know control flow and architecture of JVM?
    Where i can know from?
    if some one wish to explain you can here also.

    makpandian wrote:
    No it s not broken.
    As per your experience,tell me some links.Per my experience I don't need links. I could build the VM both from the general level and the specific levels by referring only to the VM spec.
    And I read the book I suggested, first edition, years ago. Although with many other books.
    Conversely if I wanted to find a link now then I would use google.

Maybe you are looking for