Change the process instance state?

Hi
i am using PAPI WS ,
the client side need to update the process instance ,as confirm or reject , so i need to update its state
How can i do such this scenario?
Thanks

Since your query is resulting the correct result when you run it directly.
It confirms that Issue is not with the Query.
Also DB adapter will do nothing and only create a equivalent XSD for your query. So this also confims that Issue is not with the DBadapter.
Kindly recheck the BPEL invocation of DB adapter and also check if anywhere in between process is getting the exception. Because All Tech adapters runs in the Main thread and will rollback automatically in case of Exceptions.
So check your BPEL process once again.
Regards,
Ashutosh Singh

Similar Messages

  • Showing the process instance state.

    My application for material purchasing has two phases:
    1. the user fills an online request form (providing item, quantity, price, etc.) and the request is saved in the db;
    2. from within the application the user starts an approval process for his request.
    Still using this application, the user can later on look again at his request. Now I would like to show him the state of the process instance associated to it. The best for me would be to link, from my application, the same diagram shown by the Process List Viewer, with a green square on the activity in process.
    Is it possible? If yes, how?
    Thank you in advance.
    Livio

    Hi Harsha,
    the url you provided returns the following exception:
    The requested deployable object 'sap.com/tcbpemwdui~procvis' is not deployed on the server.
    I don't know if it's a matter of sw level. I am using NWCE EHP1 7.11 SP04. Do I need to upgrade to 7.2?
    Besides, I discovered that this url is working fine:
    http://server:port/bpem/pv/index.jsp?processInstanceId=<32_char_processinstanceID>
    Anyway, to have one of those url working I need to get the <32_char_processinstanceID> programmatically, but I don't know how. I searched through the documentation, but I didn't find anything.
    Can you, please, help me?
    I think that the functionality I am trying to privide to the end user is quite common.
    After filling an online form and after submitting it for approval, the user is extremely interested in the progress and in the final outcome of the process. Such information is provided by the Process List Viewer, where he can find, for example, the process instances he has started, but it's hard to correlate one instance with the request submitted. Searching through the requests is easier and is done with relational queries; from here it would be extremely useful to link any information about the state of the process instance.
    Can you please comment on this?
    Thank you.
    Livio

  • 'End Terminate' event does not completely terminate the process instance!

    Hi,
    my process make use of the 'End Terminate' event, this will be used pending on the outcome of a prior task, using the 'Exclusive' gateway. This works quite well but in case of process termination some strange behavior happens.
    The Enterprise Manager tell me that the process instance is in state 'Terminated' but the BPM Workspace in the 'Process Tracking' tab this instance is still in state 'Running' and if I check the WFTASK database table the process instance is still in state 'OPEN' and not 'CANCELED'.
    So my question is, do I use the 'End Terminate' event the wrong way or is this a bug/feature?
    Thanks in advance,
    Daniel
    PS: I use BPM Suite 11.1.1.5 with Feature Pack.

    If we see a human task active even after termination end event is not considered a bug... I'm sorry, but i think that if every task active in the process instance is not terminated or "killed", the terminate end event is not working well. So we are talking about a bug.
    If I'm wrong, what is the expected behavior of teminate end event?
    Thanks in advance.

  • 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

  • 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.

  • Change the process name in Windows

    Hello,
    I wondered if there are any JVM commands which changes the process name of a java-application running in Windows?
    I am running several java processes and I would like to identify them in the taskmanager list or tasklist.exe

    Check out the jps utility in JDK5.0 (http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html). jps -l is probably what you want. It will list applications that are running with 1.4.2 too.

  • User assigned to the process instance

    How to get in an automatic activity in PBL code, the user assigned to the process instance.
    In other words, if a previous activity is this.participant.next = Participant.findByName ( "ereyes")
    in the activity that follows I want to get that user.
    Can I get one?

    Thanks Dan for responding.
    I need help to assign the variables that tell me, mySavedParticipantName.
    The design process is as follows.
    1 .- Begin Activity
    2 .- Begin activity is connected to an interactive activity in the PBL method with code only does a log "Interactive Activity".
    3 .- interactive activity is connected to the end activity.
    4 .- The interactive activity is connected by a "Due Transition" to an automatic activity.
    5 .- The automatic activity has a transition to the Interactive Activity
    6 .- The PBL code of automatic activity is executed when it meets the deadline of interactive activity. This code is where I need to know which user was assigned to the interactive activity.
    The stage of the process is as follows.
    A. - It creates a process instance.
    B. - User "Dan" is assigned the process instance but NO running interactive activity.
    C. - The automatic activity reaches its deadline.
    D. - Runs the code of automatic activity. and there need to know the user who was assigned, ie, the user "Dan"
    If the code did not execute interactive activity, how can I assign the variable mySavedParticipantName for automatic activity and has a value?.
    Thank you and hope you can help me.
    Greetings

  • 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.

  • User exit or FM to change the process order

    Hi All,
    I want to know any FM or user exit to change the process order.
    Any help will be appreciated.
    Regards,
    Seema
    Edited by: Seema Naharia on Dec 10, 2009 8:41 AM
    Edited by: Seema Naharia on Dec 10, 2009 8:42 AM

    Hi Nihad,
    I couldnot find this BAPI.
    Regards,
    Seema

  • HT201272 Hi, i am facing problem when i try to copy an App from itunes to my iphone 3GS.... when i try to apply changes the process bar complete but apps not copied in my iphone.. plz help

    Hi, i am facing problem when i try to copy an App from itunes to my iphone 3GS.... when i try to apply changes the process bar complete but apps not copied in my iphone.. plz help

    Will the app run on iPhone3GS. Some of the newer apps require IOS 5 or later. This info should be displayed witht the app in itunes store

  • Change the default select statement in the execute_query function

    I want to list all records where c1 like '%ABD%'. So I set the following in the 'when_button_pressed' tigger:
    set_block_property ('block_name',DEFAULT_WHERE,'upper(c1) like '''||'%'||:block_name.blk_col_name||'%'||'''');
    execute_query;
    When I click on the button the :system.last_query holds the following select statement:
    select c1, c2, .. cn from t_n where upper(c1) like '%ABD%' and (upper(c1) = 'ABD' and (c1 like 'ab%' or c1 like 'aB%' or c1 like 'Ab%' or c1 like 'AB%')) order by c1
    Since the condition upper(c1) = 'ABD' is not satisfied oracle does not return any rows.
    My question is how to overcome this or is it possible to change the built-in select statement of execute_query.

    Have you tried this :
    'upper(c1) like upper('''||'%'||:block_name.blk_col_name||'%'||''''));

  • Sending the process instance to a particular participants workspace

    Hi All,
    I am a bit new to Aqualogic BPM. I have to design a process, the requirements of which are as follows:
    The process has three roles:
    - Super Users
    - Supervisor
    - Primary Users
    Super User and Supervisor will have one participant each but the role Primary Users can have multiple participants. The process will be initiated by the Super User, which will go in the Supervisors workspace. Now, the supervisor should have the flexibilty of assigning this intance to any one of the participant in the Primary User role.
    The Approach that i am following (from Supervisor onwards):
    Supervisor will see a presentation where he'll have all the participants of Primary Users in a drop down, from where he can select the participant to whom he wants to assigned. Then i am assigning it to Participant.next but unfortunately when taking the log, Participant.next is coming null.
    I have following queries:
    - Why Participant.next is still coming null?
    - Can't we assign anything to Participant.next?
    - Can we direct the instance to any Participant which is from a different role (just after the role from where we are assigning)?
    - Is there any other approach that can resolve this issue?
    Thanks,
    Akshay

    Have you tried using the lower case version "participant.next" instead? Also, I think this is only available to automatic activities.
    TP

  • 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

  • Is it possible to change the database instance host ??!!

    Hello,
    Quick question, I finished the installation of XI 3.0 with all patches.  But the system is running low, very low on resources even though it has 2GB of RAM.  I was wondering if it is possible to migrate the <SAPID> database and then re-configure the central instance and J2EE Engine to access a different machine OR do I have to re-install and follow the distributed system installation process.
    Thanks!

    Diego--
    Your issue isn't the database, it's the J2EE server.  Moving the database instance isn't going to save you enough RAM -- you'll run into the same problem again as soon as you start running messages through the system, when the J2EE engine starts allocating heap space for those messages.
    Our experience has been that 2GB of RAM is not enough for a development/prototype XI system.  You need 3GB to do a basic prototype/development machine install (but ask for 4GB if this is your permanent development system).  You'll need more than that in a typical production system.
    --Dan King
    Capgemini

  • Can we change the Oracle instance name after confoguration.

    Hi,
    Has anyone tried changing the Instance name in Oracle after all the EPM components are configured.
    I mean, after the system is up and running. Do I have to re-configure everything with new instance name?
    If yes, what happens to data that was already there in the schemas?
    Thanks in advance,
    PM

    Try the following
    "On the machine hosting Shared Services, launch EPM System Configurator with the enableRegTask option: Make EPM_ORACLE_HOME/common/config/version_number the current directory and then launch configtool.bat|.sh -enableRegTask."
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Bug causing PLS-00103 error

    The following anonymous block works fine begin null; end; /but if I add a space between "end" and ";", like this begin null; end ; /I get ORA-06550 and "PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following ..." errors.

  • Retrieving the new entries of an updated ATOM feed/API

    I am using Java servlets to read several ATOM feeds.while reading those feeds below is the problem which i encountered An illustration of the problem ..................... Suppose At 9:00 AM Feed entries are X Y At 9:10 AM Feed entries are a b c X Y

  • How to get one element of a database with database toolkit

    I am working with an access database in which I want to store information about all the computers that recide in a network. The information that I will store in this database is computer's IP address, computer name, etc. Now I want to look in my data

  • How to make a menu at the top of the page move to the left when scrolling?

    I have a menu on the top of the page on a sidebar-sort. I was wondering how you could make it move to the left, not until the scrollbar reaches the end of the page, but when I say so. If i put the key position under the menu, it disappears. If i put

  • Unity 7.02 maximum message length only 30 secs

    Unity 7.02 maximum message length is approx 30 secs regardless of the settings in sys admin. Has anyone encountered this issue?