How to get the process instance key so as to retry a rejected task through api while ad provisoing?

Hi All,
How to get the process instance key so as to retry a rejected task through API while AD provisioing state?
API URL - http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
Thanks

To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
-Kevin

Similar Messages

  • OIM - Task Assignment Adapter - How to get the object instance key?

    Hello experts,
    I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
    So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
    Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
    Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
    Best Regards,
    Nitto

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • How to get the activity instance id and process id

    Dear All,
    For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
    Any gentllement can give me an idea.
    Thank you.
    Regards
    Eric

    process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  // by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
                                                 /* and the user accessing it */ userContext);
         //          retrieve the Runtime Manager
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         // create an empty role assignment list
         IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
         //Initialising the input params
         IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
         params.setAttributeValue("Name",value);
         //Starting the process
         IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user);

  • How to get the process id of a sql statement or a session  ....

    How to get the process id of a sql statement or a session . ..?
    Thanks

    What about this?
    SELECT pid
      FROM v$session s, v$process p
    WHERE p.addr = s.paddr
       AND s.sid = :sid;   -- replace :sid with your session idRegards.
    Al

  • Get the Process Instance as a process variable

    Hi,
    is there a way on a Workflow Process to get the process instance in order to save it as a process variable (and then store it via a backend call).
    In other words: I have many processes designed via NWDS Process Composer and I'd like to get the process instance ID in order to save it for faster retrieval of the process in the NWA's Manage Process application.
    Thank you,
    Pietro.

    Does it work if the process instance is already created?
    Can you give me an example?
    I've put as the first step of every workflow a callback method that is executed that calls an RFC to confirm, backend-side, that the process has been created.

  • How to get the list of only installed bundled application on mac os X through programmatically???

    how to get the list of only installed bundled software on mac os X through programmatically???

    I think what you get is below;
    App Store
    Calculator
    Calendar
    Contacts
    Dashboard
    Dictionary
    DVD Player
    FaceTime
    Font Book
    Game Center
    Image Capture
    iTunes
    Launchpad
    Mail
    Messages
    Notes
    Photo Booth
    Preview
    QuickTime Player
    Reminders
    Safari
    Stickies
    System Preferences
    TextEdit
    Time Machine
    Twitter
    Activity Monitor
    AppleScript Editor
    Audio MIDI Setup
    Bluetooth File Exchange
    Boot Camp Assistant
    ColorSync Utility
    Console
    DigitalColor Meter
    Disk Utility
    Grab
    Grapher
    Keychain Access
    Migration Assistant
    Network Utility
    RAID Utility
    System Information
    Terminal
    VoiceOver Utility
    X11
    XQuartz
    Note if you buy a new Mac with ML preinstalled the list may be larger.

  • How to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK?

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

    I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.

  • How to get the all instances in which I acted on any of the activity?

    Hi all,
    Consider that in a Process there are three Activities named
    1. Create Proposal Role : Initiator
    2. Routed to Primary Owner Approval Role : Primary Owner
    3. Routed to Manager Approval Role : Manager
    Suppose I'm a Participant having access to PrimaryOwner Role. Some X, Y, Z persons created 3 instances whcih is now in "Routed to Manager Approval" activity or completed. I acted only on 2 instances and the other some one else acted. How can i get the 2 instances in which i acted . What is the way to acheive this PAPI 6.0 or Stuio 6.0?
    Thanks in advance,
    Sana

    Doing something similar, using following code in a screenflow called from a global activity:
    ps = new ProcessService();
    ps.connectTo(url :Fuego.Server.directoryURL, user : "username", password : "password");
    InstanceFilter filter = ps.getFilterFor(viewId : "myHidView");
    filter.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    // have tried the filter using both methods below
    //filter.setParametricValueTo(variable : "myvar", value : myDesiredVarValue);
    filter.addAttributeTo(variable : "myvar", comparator : Comparison.IS, value : myDesiredVarValue);
    instances = ps.getInstancesByFilter(filter : filter);
    I get the following error in the engine log:
    Unable to receive the message because of a serialization error. Caused by: fuegoblock.papi.Instance fuego.rmi.spi.SerializationException: Unable to receive the message because of a serialization error. at fuego.rmi.spi.BaseConnection.send(BaseConnection.java:101) at fuego.rmi.ServerCluster.send(ServerCluster.java:226) at fuego.rmi.ServerCluster.sendResult(ServerCluster.java:495) at fuego.rmi.ServerCluster.access$400(ServerCluster.java:50) at fuego.rmi.ServerCluster$1.put(ServerCluster.java:590) at fuego.component.ExecutionThread.sendResult(ExecutionThread.java:523) at fuego.component.ExecutionThreadContext.doClientInvoke(ExecutionThreadContext.java:668) at fuego.component.ClientRemoteComponent.doInvocation(ClientRemoteComponent.java:303) at fuego.component.ClientRemoteComponent.invoke(ClientRemoteComponent.java:160) at fuego.component.ExecutionRelayedThrowable.execute(ExecutionRelayedThrowable.java:94) at fuego.server.execution.TaskExecution.handleExecutionRelayedThrowable(TaskExecution.java:802) at fuego.server.execution.TaskExecution.handleComponentExecutionException(TaskExecution.java:753) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:493) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:677) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:638) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:451) at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:164) at fuego.server.execution.Global.continueCil(Global.java:68) at fuego.server.AbstractProcessBean$39.execute(AbstractProcessBean.java:2515) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540) at fuego.transaction.TransactionAction.start(TransactionAction.java:213) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:118) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2508) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1477) at fuego.lang.JavaObject.invoke(JavaObject.java:185) at fuego.component.Message.process(Message.java:585) at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:759) at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132) at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:257) at fuego.component.ExecutionThread.work(ExecutionThread.java:818) at fuego.component.ExecutionThread.run(ExecutionThread.java:397) Caused by: java.io.NotSerializableException: fuegoblock.papi.Instance at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.component.Message.writeObject(Message.java:665) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.component.Batch.writeObject(Batch.java:151) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.rmi.Packet.write(Packet.java:251) at fuego.rmi.spi.BaseConnection.send(BaseConnection.java:98) ... 38 more
    Sorry for huge error message.
    Is there a trick to getting the filtered set of instances from in the screenflow activity?

  • How to get the process chain name if we know the data target in sap bi

    Hi SAP BI Gurus,
    Can any help me how to find the process chain name if we know the data target name
    i mean if i know the info cube name how to find the relavant process chain which is holding that info cube
    Thanks,
    Joe

    Hi R Kumar,
    Check the table RSPCCHAIN.
    I mean, Use Table RSPCCHAIN and give the local chain tech name in VARIANTE field and search, in out put you will get meta chain name under the field CHAIN_ID.
    Thanks,
    Sreehari.

  • How to get the Process order Number (Deatials by providing Salese order)

    Hi
    I want help to get the Process order details against with sales order number
    in which table i ll get this information and any particular  Function module is available???
    Regards
    Jagadish

    here KDAUF is empty
    Any other table is there i checked AUFK also AFKO also i ma not getting.

  • How to update the Process-Instance Variable Using Process API in OBPM 10.3?

    Hi All,
    I have a requirement to update the the process Instance variable from another process, but I am unable to find any method to update or set variable?
    I try the same using Process API also but no luck. Please provide me the code or link to implement same.
    Thanks & Regards,
    Ankur

    Hi,
    I have followed the procedure which was updated above.
    I ahve the sample to update the variable in the another instance of the another process. it's working fine. But I have followed the same procedure in our project it's giving the below exception at notification.send() method. Please help me to resolve this. thank you.
    fuego.transaction.DatabaseException: An error occurred while accesing the database.
    Detail:SQL statement: ' SELECT INSTANCEDATA, PROCESSID, INSTID, THREADID, NAME, PARENTTHREAD, PRIORITY, CREATIONTIME, AUTHOR, PARTICIPANT, NEXTPARTICIPANT, PROCESSDEADLINE, ACTIVITYDEADLINE, RECEIVETIME, ACTIVITYNAME, NTHREADS, CTHREADS, FCTHREAD, TOTALTHREADS, STATE, SOURCEACTIVITYNAME, ROLEIN, PENDINGITEMID, LASTRESULT, ITEMDEADLINE, NCHANGES , NREMARKS, NATTACHMENTS, HASPARTFORROLE,MICROACTIVITYNAME, V_REF_NO, V_TASK_ID, V_TASK_STATUS FROM PPROCINSTANCE WHERE PROCESSID = 63 AND INSTID = 1996 AND THREADID = 0 FOR UPDATE'
    at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.load(JdbcProcessInstancePersMgr.java:1640)
    at fuego.server.persistence.Persistence.loadInstance(Persistence.java:827)
    at fuego.server.AbstractInstanceService.readInstance(AbstractInstanceService.java:764)
    at fuego.ejbengine.EJBInstanceService.getLockedROImpl(EJBInstanceService.java:218)
    at fuego.server.AbstractInstanceService.getLockedROImpl(AbstractInstanceService.java:879)
    at fuego.server.AbstractInstanceService.getLockedImpl(AbstractInstanceService.java:730)
    at fuego.server.AbstractInstanceService.getLockedWaiting(AbstractInstanceService.java:219)
    at fuego.server.AbstractInstanceService.getLockedWaiting(AbstractInstanceService.java:199)
    at fuego.server.execution.AbstractReceiveNotificationExecutionHandler.getLockedTargetInstance(AbstractReceiveNotificationExecutionHandler.java:223)
    at fuego.server.execution.AbstractReceiveNotificationExecutionHandler.receiveNotification(AbstractReceiveNotificationExecutionHandler.java:96)
    at fuego.server.AbstractProcessBean$41.execute(AbstractProcessBean.java:2776)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95)
    at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2757)
    at fuego.server.iec.LocalIPCHandler.sendNotification(LocalIPCHandler.java:79)
    at fuego.server.execution.microactivity.DefaultSendNotificationExecutionHandler.sendNotification(DefaultSendNotificationExecutionHandler.java:103)
    at fuego.server.NotificationComponent.sendNotification(NotificationComponent.java:95)
    at fuego.server.AbstractProcessBean$49.execute(AbstractProcessBean.java:3270)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.sendComponentNotification(AbstractProcessBean.java:3266)
    at fuego.server.AbstractProcessBean.sendComponentNotification(AbstractProcessBean.java:3252)
    at fuego.components.Notification.send(Notification.java:148)
    at xobject.EPCS.PAction.collateTask(PAction.xcdl:34)
    at oracle.TRReview.Default_2_0.Instance.CIL_poReview(Instance.xcdl:25)
    at oracle.TRReview.Default_2_0.Instance.CIL_poReview(Instance.xcdl)
    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 fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1082)
    at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1277)
    at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
    at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
    at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
    at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
    at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
    at fuego.server.AbstractProcessBean$48.execute(AbstractProcessBean.java:3204)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
    at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3208)
    at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1162)
    at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.runTask(EJBProcessControl_1zamnl_EOImpl.java:4463)
    at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.oracle.OracleImplStatement.execute(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
    at weblogic.jdbcx.base.BasePreparedStatementWrapper.executeQuery(Unknown Source)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)
    at fuego.jdbc.FaultTolerantPreparedStatement.executeQuery(FaultTolerantPreparedStatement.java:598)
    at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.load(JdbcProcessInstancePersMgr.java:1627)
    ... 69 more
    BatchOperationException fuego.papi.exception.CannotStoreNotificationException: An instance in Process '/Division#Default-2.0' could not be notified.
    Regards,
    Sudhakar.

  • How to get the "Num Lock" key's original status in RedHat Linux FC4 ?

    I have realized it in Windows XP platform by
    Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_NUM_LOCK),
    and it works very well in Windows XP platform,
    but it doesn't work in Redhat Linux FC4,
    and throws UnsupportedOperationException.
    Anybody can tell me whether there is any other methods
    to get the "Num Lock"  key's original status in Redhat Linux FC4
    by jdk1.5.0_02 or later.
    Any help will be greatly appreciated here in advance,
    and thanks a million for your attention.

    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=687159

  • How to get the "Caps Lock" key's original status in Redhat linux FC4?

    I have realized it in Windows XP platform by
    Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK),
    and it works very well in Windows XP platform,
    but it doesn't work in Redhat Linux FC4,
    and throws UnsupportedOperationException.
    Anybody can tell me whether there is any other methods
    to get the "Caps Lock"  key's original status in Redhat Linux FC4
    by jdk1.5.0_02 or later.
    Any help will be greatly appreciated here in advance,
    and thanks a million for your attention.

    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=687159

  • How to get the new Primary Key after the Automatic Row Processing (DML)

    Hi,
    I have a nice master detail form.
    I want, immediately after submitting the page when creating a new record in the master table, that the user may input the associated table (the detail table). For that I have created a branch that goes back to the very same page after creating the record (ie submitting the page with the button Create). In the Action of the branch, i have put P30_FICHE_ID (the item containing the primary key of the master table) with its value : &P30_FICHE_ID.
    Unfortunately I see that the item is not populated with the very new primary key. it seems normal becaus after submitting the page the tiem is not populated. This is my question : how to retrieve the newly created primary into the item P30_FICHE_ID in order to begin immediately to add rows to the detail table ?
    Hope I'm clear. My english not perfect.
    Thank you for your kind help !
    Christian
    Edited by: Christian from France on Oct 16, 2009 6:36 AM

    Christian,
    After creating Master-detail form, goto your Detail page. In this page you can see one conditonal brach which will point to 'Master' page.
    Edit this branch and here you can see this branch fires when request is in 'SAVE,DELETE,CREATE' (in Expression1). Now change the value in Expression1 to 'SAVE,DELETE'. This will do the needful :-)
    Cheers
    Hari
    Edited by: Hari_639 on Oct 16, 2009 8:02 PM

  • Get the process instance ID

    Hey,
    I've build a Process DC with subprocesses. I would like to retrieve my process instance ID, this way, when I am in a subprocess, I could still put a link to the diagram of the main process !
    Does anyone have any idea how to obtain it ?
    Any help would be appreciated!

    Hi Lynne,
    another question. Did you get the funtion "sendNotification()" running? At line push.pushSharedItem(procon, item, users); I get the error "null null"
    I already checked objects and they seems to be created correct. Might there be any attribute wrong due to the fact that this example is originally for CE 7.0?
    //Setup connection
    IUWLService uwlService = findService();
    final int sessionIdleTimeout = 60;
    UWLContext uwlContext = new UWLContext();
    IWDClientUser clientUser;
    clientUser = WDClientUser.getLoggedInClientUser();
    IUser user = clientUser.getSAPUser();
    uwlContext.setUser(user);
    uwlContext.setLocale(Locale.getDefault());
    IUWLSession uwlSession;
    uwlSession = uwlService.beginSession(uwlContext, sessionIdleTimeout);
    uwlContext.setSession(uwlSession);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    //Setup provider conn
    IPushChannel push = uwlService.getPushChannel();
    IProviderConnector procon = uwlService.getRegisterProviderConnector(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID);
    IUserFactory usf = UMFactory.getUserFactory();
    IUser sendToUser = usf.getUserByLogonID(wdContext.nodeNotifData().currentNotifDataElement().getUserId());
    //Setup item
    Item item = new Item(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID,IProviderConnector.ADHOC_WORKFLOW_SYSTEM, "" + new Date().getTime(), sendToUser.getUniqueID());
    item.setUser(sendToUser.getUniqueID());
    item.setSubject(wdContext.nodeNotifData().currentNotifDataElement().getSubject());
    item.setDescription(wdContext.nodeNotifData().currentNotifDataElement().getDescription());
    item.setItemType(ItemType.UWL_ITEM_NOTIFICATION);
    item.setCreatedDate(new Date());
    // item.setDueDate(new Date());
    item.setCreatorId(user.getUniqueID());
    item.setStatus(StatusEnum.NEW);
    item.setCompletedDate(new Date());
    // External Type is used to filter the notifications according to
    // application
    item.setExternalType("UWLNotification");
    //Send item
    Set users = new HashSet();
    users.add(sendToUser.getUniqueID());
    // users.add("USER.PRIVATE_DATASOURCE.un:testuser1");
    push.pushSharedItem(procon, item, users);
    wdComponentAPI.getMessageManager().reportSuccess("Notification Sent");
    Regards

Maybe you are looking for

  • Can I convert Twitter time Text to Project Siena's Date Value ?

    Can I convert Twitter time Text to Project Siena's Date Value ? I want to show localtime of Twitter created_at. Twitter time text = ThisItem!created_at , ex: Tue Jul 15 17:19:00 +0000 2014 I want to show 2014/07/16 02:19 by Japan localtime. Regards,

  • Discoverer 11g EUL command line error granting privileges

    I'm testing Discoverer 11g (Desktop and Administrator 11.1.3) in order to upgrade from 10g. On 10g we have some scripts that automate many things using EUL command line. The first difference I've found is than in 10g we used directly eulbuilder.jar,

  • Set up photo album in iPhone

    Hi, Could you please show me how to set up separate photo album in iphone? thanks!!

  • Turkish character problem on downloaded subtitles

    First of all I could not categorized this issue, so I decided to post to "MacBook Air" which I had problems with. I'm open to any advices about that. Whenever I download a Turkish subtitle from web (using safari) I open it up on TextEdit app, and Tur

  • Failed download

    I hope someone can help. I am trying to install Lightroom and Photoshop using my monthly Creative Cloud membership. I get as far as a message saying "Lightoom is downloading now" but nothing happens and no file every appears in my downloads folder. R