I want to create sub-task "Human task" programmatically by using APIs, any help?

I want to create sub-task "Human task" programmatically by using APIs, any help?

Solved

' public void createSubTask (String title, String username) survey StaleObjectException, {WorkflowException}

oracle.bpel.services.workflow.task.model.ObjectFactory objFac = new oracle.bpel.services.workflow.task.model.ObjectFactory ();

oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory rObjFac = new oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory ();

DecomposeTaskModel.IParticipantGenerator generator = null;

DecomposeTaskModel decomposeTaskModel = new DecomposeTaskModel();

DecomposeTaskModel.SimpleGenerator simpleGenerator = decomposeTaskModel.new SimpleGenerator();

generator = simpleGenerator;

Assignee list = new ArrayList();

assignee. Add (new TaskAssignee (username, "user"));

Participants participants = generator.generate (null, null, assignee,);

DTI DecomposeTaskInfo = objFac.createDecomposeTaskInfo ();

dti.setTitle (title);

RoutingSlip rs = rObjFac.createRoutingSlip ();

rs.setParticipants (participants);

This.Task is WorklistServiceLocator.getTaskService () .decomposeTask (this.task.getSystemAttributes (.getTaskId ()), rs, wfCtx, dti);.

}

Tags: Fusion Middleware

Similar Questions

  • I want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting?

    you want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting? @@

    Hi love,

    You can publish your Business Catalyst, simply open your file of muse and select files-> publish.

    Please refer to this tutorial:- publish your site with Adobe Web Hosting | Learn the Muse | Adobe TV

    In addition, once your site is published, you can add your domain to your site hosted on BusinessCatalyst.

    Please refer to this tutorial to add your domain name:- http://helpx.adobe.com/business-catalyst/using/change-site-domain.html

    Hope this helps

    Kind regards

    Rohit Nair

  • I want to create a PDF file that can be used by many people running on MAC and PC.  What should Adobe I use?

    you want to create the PDF file that can be used by many people running on MAC and PC.  What should Adobe I use?

    Hello Anne,.

    in all these cases, I use "Acrobat XI". You can first use a trial version, here is the link: Download Adobe Acrobat free trial version | Acrobat Professional XI

    Hans-Günter

  • Can I create two tasks of IA using the same unit of data acquisition?

    Hi all

    Sorry for the question of gumby, but I'm new to all this stuff DAQmx, and I'm trying to understand how it all works.

    I use a USB-6229 with LabVIEW 8.6.1.

    I would use 30 lines HAVE to monitor 30 voltage remote signals.

    I would use the other two lines of AI to perform input voltage independent tasks.

    I tried to create and start the two tasks, but I get an error message when I try to start the second task.  He tells me that the resource is not available.

    What is the cleaner way to configure things working for me?

    Thanks in advance.

    -FB

    Hi diarmaede,

    You can only create one task to HAVE on your card. Read all your DO this card in a loop. You can divide the result and send it to different loops to work on it.

    It will be useful.

    Mike

  • Problem to stop the task of continuous using API C DAQMx data acquisition

    I'm doing the acquisition of data in the PCIe-6536 continuously using DAQMx C API. But whenever I try to erase the task and put end to my application, program stops and it is not completed by the Task Manager and task killer applications. Can someone help me with this?

    Sameer

    Hi John,.

    Thank you for your concerns. the example attached also created the same problem. Then I run the test of the device to the MAX and it failed. Then I realized that there is something wrong with the installation. I simply uninstalled the card and installed on the other PCI-e slot. This time, self test has been successful and so did my request.

    So my problem has been resolved

    Again thank you for your quick response.

    Sameer

  • Attempt to create organization in OIM 11 g R2 using API

    Hi all

    I am trying to create organization in OIM 11 g R2 using the API. I managed to create an organization with the name of organization and Type Customer organization attributes but when I try to add the name of the Parent organization he throws me the following error message

    [Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization: name of Parent Organization]


    any help in this regard will be useful...

    Thank you

    Try this:

    Organization or = new Organization();
    String hm.get = orgname (1) m:System.NET.SocketAddress.ToString ();
    String parentorgname = hm.get (2) m:System.NET.SocketAddress.ToString ();

    /System.out.println ("name of organization:" + orgname);
    System.out.println ("Parent agency name:" + parentorgname);

    RC = orgService.getDetails (parentorgname, null, true);

    DELETE ABOVE LINE AND ADD BELOW LINE

    RC = new Organization();
    or.setAttribute ("name of organization", orgname);
    System.out.println ("OrgName Set");
    or.setAttribute ("client organization Type", "Society");
    System.out.println ("Set OrgType");
    or.setAttribute ("parent_key", "27");

  • OIM 11 g - how to run a task scheduled by using APIs

    Hi all

    Can I know how can I run a job schedule in OIM 11 g via API. I mentioned the link below but it is for version 9.x. I need the same functionality in 11g?

    Schedule tasks

    Thanks in advance.

    Check this box:

    SchedulerService schService = oimClient.getService (SchedulerService.class);
    schService.triggerNow round demo Scheduled Task");

    QAnywhere:

    Sub triggerNow (java.lang.String jobName)
    get SchedulerException,
    SchedulerAccessDeniedException

    Runs the specified job
    Parameters:
    jobName - the work that needs to be triggered
    Throws:
    SchedulerException - when an error occurs in the Quartz engine or Scheduler is not running.
    SchedulerAccessDeniedException - this exception will be thrown if the access permission for the operation is not available for the user

  • Initiation of a process task requiring entries using API

    Friends,

    I'd do it to trigger a process of IOM outside task. I got the key of millet and key process instance.

    But this task requires certain mandatory entries. Can you please let me know how to get these entries to the method

    provIntf.addProcessTaskInstance(mil,key,processinstancekey);

    tcFormInstanceOperationsIntf API to set the value of the process form with the help of the key of the Process Instance. And then you can call the addProcessTaskInstance method

  • An exception occurred while creating a user in the IOM by using APIs

    Get the UserManager service
    UserManager usrService = oimClient.getService (UserManager.class);
    for (; i < = n; i ++)
    {

    userAttribute.put("act_key","1");
    userAttribute.put ("User ID", username + i);
    userAttribute.put ("FirstName", firstname + i);
    userAttribute.put ("Name", lastname + i);
    userAttribute.put ("Password", password);
    userAttribute.put ("Role", "Full Time");
    userAttribute.put (Type "Xellerate", "End user");
    User user = new User (null, userAttribute);
    Result = usrService.create (user) UserManagerResult;
    }

    trying to create the user returns this:

    Exception in thread "main" java.lang.ClassCastException: java.lang.String
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.create(UserManagerImpl.java:403)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.createx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy324.createx (Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.createx(UserManager_nimav7_UserManagerRemoteImpl.java:1005)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:478)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Process has finished with exit code 1.

    Your ACT_KEY must be a value of type long.

    -Kevin

  • How to create a task DAQmx LabVIEW?

    I want to create a new task DAQmx in LV I used "create new task" VI in Bt NV. I want to see the task created in the list of tasks MAX also.

    There is no connected device. Its just simulation.

    Use the task to save DAQMx.

    http://search.NI.com/nisearch/app/main/p/bot/no/AP/global/lang/en/PG/1/q/DAQMx%20Save%20Task/

  • How to create a task that runs once a day, immediately after the opening of session?

    Hello, I'm wondering how to create a task using the Task Scheduler that runs once a day, immediately after I have logon.

    The reason is I want to use Bing Desktop to change my wallpaper every day. However, I just want to run the first time I start my computer every day, so it will change the wallpaper. By default, it starts whenever I have to logon. It's annoying, because I just want it to start once a day to change the wallpaper. However, using the Task Scheduler, I put only a trigger to start "at the opening of session' or"once a day." If I choose once per day, it runs about 5-10 min after I login, instead of logon immediately after. If I choose the two triggers, then it starts after each session.

    Basically, I just want the Task Scheduler to launch the program after the connection the first time I connect to the computer on any given day. How can I do this?

    Hello Jeffrey,.

    You can refer to the links below and see if that helps.

    Create a task

    http://TechNet.Microsoft.com/en-us/library/cc720110 (v = WS.10) .aspx

    Modify a scheduled task

    http://TechNet.Microsoft.com/en-us/library/cc778308 (v = WS.10) .aspx

    Change an existing task

    http://TechNet.Microsoft.com/en-us/library/cc766442.aspx

    Please write back to us for assistance and we will be happy to help you come.

    Thank you

  • After creating a task, it is not listed in the Task Scheduler Library.

    Hello

    I created a system task to the system log. It was supposed to send an email to me whenever the event is logged.
    After saving it, I wanted to get to the Task Scheduler Library, but it has not been listed. I tried to create the task again, but it is said that a task with the same name already exists. The event took place, and when I looked at the status of the task, it shows the name of the task with the result of success.
    How can I remove / edit the task when I can't? Help appreciated.
    Thanks in advance
    Richard
    original title: event schedule

    There is a small arrow to the left of the entrance to the Task Scheduler Library, click the arrow to expand the list to view tasks created by the system.  Then browse folders to find the one that you created.

    Defragmentation, just for example, is to

    Library of Task Scheduler, Microsoft, Windows, Defrag

  • How to create a task and then run it later?

    We have a requirement like this: we insert records into a table. After inserting records, we need a web service ping command and tell him to read the new records.

    We call the WS in a trigger after-insert-for-all-row.

    Can we create employment and in the trigger, use DBMS_SCHEDULER. RUN_JOB ('call_web_service', use_current_session = > 'FALSE') to perform the task?

    When we create jobs, we can use start_date = > null to indicate that we do not want to run the task now, but later?

    Hello

    Yes, you are on the right track. If it is a work intended to be run on demand, then specify a start_date/end_date, nor a repeat_interval.

    You can even create as disabled (enabled-FALSE online).

    Use DBMS_SCHEDULER. RUN_JOB ('call_web_service', use_current_session-online 'FALSE') every time you want to run the task.

  • Need to create a task sequence for deploying Win - XP in MDT 2010

    Hello

    I'm having the lab for MDT 2010 configuration, now I need to create a task sequence for deploying operating system Win - XP with MDT 2010. Is it possible to create in MDT 2010 if yes please let me know the steps.

    It helped me http://www.edutechnow.com/?p=122

  • I want to install "Wizard task", but I can't seem to find anywhere to download it.

    Task Wizard

    I want to install "Wizard task", but I can't seem to find anywhere to download it.  There, can someone help me?  I'm a total dummy when it comes to computers.

    Hi Donna,
     
    -Are you looking for program Assistant tasks planning tasks of your computer?
     
    If Yes, you can use the Scheduler tasks program to do the same.
    For more information, see:
     
    If this isn't the case, include more details pertaining to the matter to help us you help.

Maybe you are looking for