How to execute two task at a time?

Hi.
I have made one Generic connector for an Oracle database. This is a simple connector (application tables) which inserts the user row into the database when assigned as a resource to any IdM user.
I have also created an IT resource for the creation of Database User for the same database in which i am inserting user record.
Is it possible 2 merge these 2 steps..? I mean, when i assign the resource to a user the IT resource for DB User creation also gets executed.
For example: I select a user in IdM, assign the database application resource to it which will create the same record in the target database & at the same time i also want that the IT resource for DB user also get executed at the same time/event.
I hope i have clarified the requirement :)
looking forward for some help...
Hannaa.

It sounds to me like you want the user provisioned in two places, in the database table with the GTC connector and as a database user. Is that correct?
If so, I am new to OIM so I can't provide that much help but I'm sure others on this forum can. I would add the user to an access policy that grants both resources.
Regards,
Ruth

Similar Messages

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • How to use two tasks in Workflow

    Hi Everybody !
    Can Any one tell me, How to use two tasks in one activity step type of  Workflow CRM?
    My requirement is... I have to execute two tasks in single activity step in Workflow. Is it possible.if it is possible tell me the flow Please.
    Thanks in advance.
    Raghava Vakada.

    You can define one as a "Before" or "After" method if that is usable for you. (defined in tab Methods for Activity steps)
    Otherwise there is also the step flag "Advance with dialog" (tab Details on Activity steps, but the tab it is found on depends on your version) which allows one user to seamlessly execute two consecutive tasks.
    So depending on your real need there may be several options available. If all that is needed is that the same user can execute the two tasks then Advance with Dialog is perhaps the best choice. If the user then cancels execution of the second activity the work item is available for execution. If you define an After method and the user cancels execution the work item has still been completed since its (main) method has been completed.

  • How to execute two structure type values

    How to execute two structure type values for HWC app in SUP 2,2 ? Added is the screenshot, with the structure and values to be executed. Trying in the preview works fine , but how to process in the application ?

    Thanks Midhun VP i came across result checker , but still checking if there is any work around without result checker. , Will  a HTML view with some Success status work in this scenario .
    Correct me if i am wrong, as per my understanding , Result checkers checks the error code return value from BAPI and shows the respective message.
    If so, what are the Pros and Cons of using Result checker.
    Is it suggested to use Result checker for read only operations applications i,e which does nt involve operations( CUD)

  • Combining package configuration and Execute SQL task at run time

    Hi everyone,
    I have an issue regarding setting values at run time
    I use package configuration to manage different enviroments scenarios (DEV, PROD):
    XML file to store the connections string of SSISConfigDB
    and the actual values of parameters in that SSISConfig DB tables Filtered by ConfigurationFilter column
    Now, one of my packages needs in addition setting at run time value of a flat file name
    i used an Execute SQL task - within the task i read into a variable the file name using command line
    then, the full path of Flat File Connection is set by expression concatenating the root folder and the variable
    the problem is that the variable stays empy! as if the Execute SQL task was never executed!
     Am i doing something incorrect? in the package configuration wizard the configured value are only XML file and the connection string of the DB.
    to summerize - how can i combine package configuration, default value, Execute SQL task and expression at runtime?

    1.EvaluateasExpression=TRUE (Full Path variable)
    2. Do you mean to invlole a ISNULL() function in the expression? if so, no
    3. Of course i recieve a valid value
    4. The Full path expression is evaluated to the root folder - without the portion of the file name
    here is the syntax in Execute SQL Task:
      truncate table OnErrorFlagTable
      Declare @Path varchar(128)
      Declare @FileName varchar(128) 
      Declare @SenderID varchar(5)
      Declare @INST_COD varchar(5)
      Declare @Flag int = 0
     Declare @FileType varchar(2)='01'
      Truncate table TraumaRecords
    Select @Path = 'C:\RootFolder\'
     --***Insert into Temp table the file so we can take his name***--
    Create Table #Tmp(Txt Varchar(Max))
    Insert Into #Tmp(Txt)
    Exec master..xp_cmdshell 'Dir *.txt C:\RootFolder\/b'
    select top 1 @Filename = Txt From #Tmp
    Where ISNUMERIC(substring(Txt,1,1))=1
    order by Txt desc
    Insert into OnErrorFlagTable
    Select 2,@FileName
    Select @FileName as TraumaFileName,@FileType as FileType
    Then, in ResultSet TraumaFileName and FileType are mapped
    Expression of @TraumaFlatfileFullPath is
    @[User::TraumaFlatfilePath]+ @[User::TraumaFlatFileName]
    where the variable @[User::TraumaFlatfilePath] is evaluated in variable window (default value)
    and it's value is C:\RootFolder\
    and @[User::TraumaFlatFileName] is the ResultSet of the ExecuteSQLTask
    and for some reason when executed in SSIS return null while in SSMS return the expected value
    Can you try making this into a procedure with required parameters and call it from SQL task to see if you get return value correctly? Use OUTPUT parameters for getting back required values
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Ant: How to execute / skip tasks by property in build.xml ?

    Hi,
    I want to create a build.xml to execute / skip tasks dynamically by property in build.xml.
    eg: I can define one property "needObfuscate" in either "true" or "false". I will contruct 2 tasks for obfuscate and non-obfuscate to fullfill the 2 cases. Only one of them WILL be executed depend on the flag "needObfuscate".
    ** I know Antenna's task "wtkpackage" has an arguement "obfuscate" to set. It's an example, what I want to know is how to execute / skip the tasks.
    Task "condition" is just used to set the property in runtime.
    <condition property="result" value="User choose 001.">
    <equals arg1="001" arg2="${select}"/>
    </condition>
    There is other tasks can fullfill what I expect ?
    Please guide me how to make it.
    Thanks.

    Hi,
    I've done one build.xml like below:
    <?xml version="1.0"?>
    <project name="PropertyPromptExample" default="main" basedir=".">
    <target name="windowsTask">
    <echo>windowsTask</echo>
    </target>
    <target name="linuxTask">
    <echo>linuxTask</echo>
    </target>
    <target name="main">
    <input message="Please enter platform(0 Windows, 1 Linux):" addproperty="select"/>
    <condition property="platform" value="windowsTask">
    <equals arg1="0" arg2="${select}"/>
    </condition>
    <condition property="platform" value="linuxTask">
    <equals arg1="1" arg2="${select}"/>
    </condition>
    <antcall target="${platform}"/>
    </target>
    </project>
    :)

  • How to submit two forms at same time?

    Have a client that requires their members to update their profile information and some of the details from that form need to also populate a WebApp.
    I've seeded the CRM with basic (first name, last name, email address, Your ID, and EntityID) member data.
    Members would log in and be asked to update their profile. [action="/MemberProcess.aspx"]
    This submission should update their CRM record *AND* create a WepApp record at the same time.
    I tried the AJAX + jQuery method, including the second WebApp form [action="/CustomContentProcess.aspx?...] fields as type="hidden", and using {tag_FIELD NAME}; but this isn't working for me, I'm admittedly not a real programmer.
    Any thoughts? Thank you very much, in advance for any and all help!
    p.s. the reason for wanting to do this, is so that members do not have to update their CRM profile and then also input their data specific to the WebApp form (it's a member listing) as a separate task.
    p.p.s. after I get through the above hurdle... how can I ensure that a CRM user has one and only one WebApp item (their listing) and that they can edit it? Another issue I'm having now is that users create a new listing in the WebApp if they submit another record and in the future I fear that simply editing their CRM profile will create new WebApp listings too. This site is like a phone book, there should only be one listing for each unique email address (in this case).
    -Will

    You can use Jquery + AJAX to submit as many forms as you want to as many places as you want. Don't use the HTML to submit and have a second javascript submitter as the Javascript might not have time to complete before the page is submitted.
    I wrote this quickly just now, this wont work on the JSfiddle site because you can't form POST / GET anything on it (AJAX included it seems). it will submit to other URLs the same data. It is done in parallel and because we don't know which one will finish quicker, both calls check if all calls are complete before confirming everything is complete. I have not tested it but it would get you 99% of the way there.
    <form id="signup_register" action="" method="post">
        Firstname<br/><input type="text" name="firstname"><br/>
        Lastname<br/><input type="text" name="lastname"><br/>
        <button onclick="formsubmit(this);">Save</button>
    </form>
    <script>
        var url1='http://google.com';
        var url2='http://gmail.com';
        var complete1=false;
        var complete2=false;
        FinishedTwoFormSubmits=function(){
            alert('Finished submit - redirect or whatever you need to do.');   
        formsubmit=function(el){
            var data = $('form#signup_register').serializeArray();
            PostSubmit(url1,data, function(){ complete1=true; if (complete1 && complete2){ FinishedTwoFormSubmits() } });
            PostSubmit(url2,data, function(){ complete2=true; if (complete1 && complete2){ FinishedTwoFormSubmits() } });
        PostSubmit=function(url,data,cb){
              var ret=false;
            var noerror=false;
                        $.ajax({
                                    type: 'POST',
                                    url: url,
                                    cache: false,
                                    data: data
                                  }).done(function(msg) {
                                            try{ noerror=true; }
                                            catch(e){ alert(e+'\n\n'+msg); }
                                            if (noerror){ cb() }
                        return ret;
    </script>

  • How to start two threads at a time

    hi to all,
    can any one tell me how we can start two or more threads at a time
    this is my req in the application i want to check that
    can any body help me in this regard.
    ashok

    If you are starting a whole bunch of threads, and want them to be eligable for execution at about the same time (i.e. dont get staggered due to the overhead of starting), then you can use locking / waiting.
    I've not really had / wanted to do this before, but I suppose something like the following might work:
    import EDU.oswego.cs.dl.util.concurrent.Latch;
    import EDU.oswego.cs.dl.util.concurrent.Sync;
    public class StartupTest {
      private void test() {
        Latch startGun = new Latch();
        // create and start some threads - I'll just create one
        Thread t = new Thread(new TestRunnable(startGun));
        t.start();
        // all started? Ok - fire the start gun to release them
        startGun.release();
      private class TestRunnable implements Runnable {
        private Sync startGun;
        TestRunnable(Sync startGun) {
          this.startGun = startGun;
        public void run() {
          waitForStart();
          // what ever you were going to do here......
        private void waitForStart() {
          try {
            startGun.acquire();
          } catch (InterruptedException e) {
            // what ever... I'll just bharf.
            throw new RuntimeException(e);
    }Even with this, your threads aren't going to actually start working all at exactly the same time - but they'll all be eligable to start working at the same time.

  • How to Link two Facts with Different Time Granularity (Year, Quarter) to a Single Time Dimension

    Hello All,
    I have the below scenario where i have Two Facts Fact Quarterly and Fact Yearly but one Time Dimension which has Quarter grain.
    So my question is how do i Establish relationship from Fact Yearly to Time Dimension??
    Ex: 

    Hi naveej,
    According to your description, you want to know how to build the relationship with time dimension and fact tables. Right?
    Based on your screenshot, it's better to have only one fact table for sales and build the relationship with time dimension. To determine quarterly or yearly data only depends on how you slice the time dimension. However, I notice that the Revenue for year
    is different from the aggregated Profit for quarters. If the Revenue and Profit are different measure, you need to have two fact tables. And you should build the relationship (Regular) between TimeDim and FactYearly on YYYY attribute.
    Reference:
    Defining a Fact Relationship
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to display two pages at a time in smartform

    Hi folks,
    I have requirement that i need to display  two pages for each record of the output table . the page 1 is not simillar to page 2 . page1 contains few templates and page2 contains other templates not simillar to first one.
    my case, it displays only the first page eventhough i tried using command line.
    Is there any exact step to followed  to over come this problem.
    Please suggest the solution.
    Thanks ,
    Hemum.

    hi,
    can u please tell me how and where u are looping throuhg the internal table
    check that.
    regards,
    Ravi Valluri

  • How to place two tables at a time in every page in a smartform?

    Hi All,
       I have a requirement in a smartform where i need two tables in every page. These tables should repeat on every page with regard to the data thats getting populated in it.If one table has more data it should not push the second table completely from the page.
    Can anyone please give me a solution.

    Hi
    If you see in real time printing of Smartform documents like PO or SO or Invoice
    we will see two tables data one is header data which will have a single record per document and Item data which will have mulitple records.
    So header data is fixed in all pages and the Item data is printed in MAIN window and overflows to other pages depending on the data.
    SO Item table data will be printed in number of pages where as the Header table data will pe constantly printed on the header part(top part) of every page.
    so you can handle the 2 internal tables data as above
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to trigger two Actions at a time in a break function(Boolean)

    Hi All
    I am using three sequential Blocks.First Block is to enter the data and send to second Block. When second sequential Block accepts it should sent to third Block. If Second Block rejects the form then I want to stop (Terminate) the process and I want to send the notification.
    I am using Pre-conditional block and checking check box in the second block to accept or reject the initial form. If I use Boolean function it automatically declare two functions one is Continue and another is Break. If I select break then I am not able to send any notification or any callable object as this break function will break the process at instant and it won’t allow any further actions.
    Thanks & Regards,
    Syed Nawaz.S

    I think you just need to use 2 sequential blocks. Seq Block 1 will contain your data input form. Seq Block 2 will contain 5 actions - 1st action is a Decision Dialog (that will have Continue and Break), 2nd Action is whatever needs to be done on Continue, 3rd Action is Terminate, 4th Action is Send Notification and 5th Action is Terminate. Set the target for Continue to Action #2 and target for Break is Action #4. Once 2 is executed it will execute Action #3 and the process will terminate. If the Break situation is executed, a notification will be sent and the process will terminate.
    Thanx,
    Mahesh

  • How to execute two stored procedures in a mapping?

    Hi All,
    I have a mapping with a source and a target table. In the same mapping, I have a stored procedure attached to a post mapping. during this execution of mapping the post mapping process works fine. Now I want to add one more stored procedure and attach to one more post mapping process. currently it is not allowing, is there any work around to implement this plan. pls post your suggestions.
    Thanks in Advance,
    Kishan

    Hello Kishan,
    The only way to archieve this currently is to create a super-procedure that calls all your stored procedures in sequence, and use the super-procedure with the post mapping operator.
    Regards, Hans Henrik

  • How to execute two nwds in the same computer ?

    Hi Guys,
    My question is in the topic. I know the same topic already exist, but I can find out it with the search engine of SDN.
    Thanks to give me some link or the answer.
    Regards,

    berthe,
    I run 3 NW IDE on same machine. Just select different installation locations and separate workspaces & DTR roots.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

Maybe you are looking for