PAPI-Add/Delete/Retrieve BPM Instance's data and attachment for an instance

Could you please me tell me how to Add/Delete/Retrieve BPM instance's data and attachment for a new as well as running instance using PAPI. Is it possible to have
a sample code.
Thanks,
Ben.

Hi Ben,
Start with this thread that shows you how to create a new work item instance in a process and pass in input argument variables to the new instance as it is created:
Creating a new work item instance in a process using PAPI
Here's a thread that shows how to retrieve variables from an instance:
Re: Instance info using PAPI in studio
Here's a thread that shows
1. how to run an activity in the process and pass in arguments using the "runActivity()" method,
2. How to run a Global activity and pass in arguments (runGlobal() and
3. How to send in a notificationto a notificationWait activity using the "sendNotificationInstance()" method:
Re: Acces Oracle BPM Process through Standalone Java Program
Finally, you can use the session.instanceAttach() method to attach a file to an instance.
Hope this helps,
Dan

Similar Messages

  • 2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • Attachment for completed Instance

    Hi All,
    I have a dirty requirement where I have to attach documents to completed instances.I tried in studio , it allows me to do so from the attachment section.But I have to this through code and not use the product feature.I have to enter the instance number and attach files from a presentation to a completed instance.Does anybody has an idea as how can i implement this? :(
    Kind Regards,
    Ritu S.

    Hi Ritu,
    You can see in chain messages how to hold instance for your requirement. But I don't think its a viable way since BPM objects might be holding large data in your case. Best way is to make lead aware of the same and let him take the decision of fulflling the requirement.
    One case to handle the above case:
    1. Add automatic activity before "End" transition and a due transition from this activity to "End".
    2. Before reaching the instance to this automatic activity, set all instance variables to "Null". It will in turn will not have impact on BPM Engine DB.
    3. Use notification and wait activity to add "Attachment" for the instance and at the same time, set the due transition value to "0s".
    Now, it will be upto you to decide as per requirement, when you need to complete the instance. This thing can also be put up to the client so that the due transition value can be set accordingly.
    Regards,
    Abhishek

  • SCCM 2012 R2 changing date and time for patching software update groups

    I recieve this error when changing date and time for software update group. worked fine yesterday before patches to the server were applied last night. we removed patches but still get error below. Any help would be great.
    ConfigMgr Error Object:
    instance of SMS_ExtendedStatus
    Description = "Property array AssignedCIs exceeded the max allowed";
    ErrorCode = 1078462259;
    File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\sspupdatesassignment.cpp";
    Line = 94;
    Operation = "PutInstance";
    ParameterInfo = "";
    ProviderName = "ExtnProv";
    StatusCode = 2147749889;
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException
    The SMS Provider reported an error.
    Stack Trace:
    at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put(ReportProgress progressReport)
    at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsDialogData.Put(IResultObject resultObject, List`1 resultObjectsPut, Boolean retainLock)
    at Microsoft.ConfigurationManagement.AdminConsole.SmsDialogData.Put(Boolean retainLock)
    at Microsoft.ConfigurationManagement.AdminConsole.DialogFramework.Forms.SmsPropertySheet.Put(ActionTrigger trigger)
    System.Management.ManagementException
    Generic failure
    Stack Trace:
    at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put(ReportProgress progressReport)
    at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsDialogData.Put(IResultObject resultObject, List`1 resultObjectsPut, Boolean retainLock)
    at Microsoft.ConfigurationManagement.AdminConsole.SmsDialogData.Put(Boolean retainLock)
    at Microsoft.ConfigurationManagement.AdminConsole.DialogFramework.Forms.SmsPropertySheet.Put(ActionTrigger trigger

    no it is the final version... is working today after cleaning up database... is working now...thanks
    Hello Robert,
    would you please give some more informations, as I have the same issue and don't get what you mean bye "cleaning up databases".
    Regards ooGDoo
    ooGDoo

  • What are the settings for apn data and mms for iphone 4 on straight talk?

    what are the settings for cellular data network APN DATA and MMS for Straighttalk sims on IPhone 4?I cant send or recieve pictures.My service keeps losin signal constantly saying no service then 1 bar,2 bars,3 bars...then back down to no service.It drops calls.Iv been trying to find out the answer to this problem for 2 weeks!I have no Profile selection in my settings either to do wat its showing online on one website.and have entered numerous diffrent APNs and none have worked!!!!PLEASE HELP!!!

    They're asking a question about carrier settings for their iPhone. I think that has everything to do with Apple.
    Maybe they did already ask Straight Talk. I've called Straight Talk before... they're not too helpful.
    You know, this forum would be much friendlier if people in this forum would quit squabbling, & posting comedic replies, not too mention name calling (like I did), when people are just needing some help.
    It's also frustrating that people stick up for the guy who doesn't help, but rather takes the time to post some smart alec reply. Granted, I shouldn't have name-called... some people just frustrate me when they act like that.
    Admittedly, there ARE some grey areas when it comes to carrier questions... but let the moderators do their job when someone is asking innappropriate stuff. And if the mods aren't chiming in, then that's a good indication that what the thread is about IS in fact Apple related.

  • Reminder app not working correctly, issue started around Sept. 1,2014. Will not allow me to set date and time for a reminder.

    Today I noticed an issue with my Reminder app on my IPhone 5s. Using OS 7.1.2. I called Apple, and the tech didn't know what he was doing and just trying different things.The reminder app will not let me set a date and time for reminder. Finally he escalated the call to a senior advisor who was rude, arrogant and unprofessional. He insisted the Reminder App was updated with the new update of IOS September/October 2013. Not true, the issue just started about 5 days ago August 31,2014. Now there is an additional reminder line for reminder entries that I have to use and have to transfer all my reminders manually from the other part of the app. The feature does exist; if I try to set a date and time for the reminder it appears for 1-2 seconds and then disappears.
    Has anyone else noticed this issue?

    He insisted the Reminder App was updated with the new update of IOS September/October 2013. Not true
    Yes, it is true.
    iOS 7 was released 18 Sep 2013. At this time, the Reminders app was updated (with most everything else).
    the issue just started about 5 days ago August 31,2014.
    Your issue just started but the app was not updated 5 days ago.
    Now there is an additional reminder line for reminder entries that I have to use
    I don’t understand what this means...
    Open Reminders, type the reminder, tap the i at the end, turn on Remind me on a day and enter the date/time.

  • PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.

    Hi Experts,
    I am trying to  build a PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.
    Can anyone advise on this please.
    Regards

    Get-SPSolution|Select Name,Scope,LastOperationResult,LastOperationEndTime|Export-CSV "SPInstalledSolutions.csv" -NoTypeInformation
    SPSolution properties
    Get-SPSolution
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Adjust Date and time for all Photos in an event?

    Would some one tell me how to adjust the date and time for all photos in an event. For some reason when I change the date, it only changes the first photo in the event and I am left with a range of dates in the event, but I would rather they all have the same date in the event. Any thoughts or ideas?

    How are you selecting the photos and changing them? How much of a change are you trying to make? A total change of date and time or just a delta change either plus or minus?
    Using the Photos->Adjust Date and Time... menu option will apply the time/date difference to all of the photos in the Event if you click on the Event icon in the Photos mode or the Event mode.

  • Getting last login dates and times for graphical/xwindows logins?

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

  • Unable to Determine the Change Date and Time for records in infotype 2011

    Hi Everyone,
    We need to know on when the clock-in and clock-out records were interfaced to SAP in infotype 2011.
    The change date/time field in infotype 2011 is blank/not populated. Hence, we're unable to determine on when the clock-in records were updated in infotype 2011.
    It is not possible to get the audit logs for infotype 2011 as it is switched off.
    We found this table TEVEN and just the same thing, the field "change on" is blank.
    Kindly help us on how we can determine the change date and time for records in infotype 2011.

    Hi Prasad,
    Here's the scenario.
    On June 3, it was reported that staff's clock-in record on june 1, 7:00AM is missing in infotype 2011.
    However, when I checked infotype 2011, the record is there.
    So, they are now asking me on when this record was updated in infotype 2011 as they are thinking that there might be some delays in sending of the data to SAP.
    The created on and created at in table TEVEN shows the same, june 1, 7:00AM which seems to be not true as on june 3, it was reported to be missing.
    Can you help further on this?

  • How to synch description, date and places for Facebook?

    I was trying to upload some pictures from Aperture to Facebook, and wanted to have it input the description, date and place for the photos.
    I typed in everything I want and uploaded the pictures but no information was showed on Facebook. And the description on Facebook remained the photo's file name...
    Is there any way that Aperture does what I want?
    THANKS

    In my eyes the fault lies primarily with FB, as other services and apps recognize caption/Description pretty consistently.
    If there is a fault in Aperture, it is that the sync with an Album on FB picks up the FB caption as a version name.  It earlier tests, the filename of the original was not altered, but only the Version name.
    I need to do some new testing about what can be transmitted from within the metadata to FB.
    Ernie

  • Date and time for background job

    Hi,
    I am creating a program with out selection screen . This program runs based on date and time . so I need to create a table
    with date and time fileds.
    Program runs based on FROM DATE FROM TIME  TO DATE  TO TIME....... FROM DATE and FROM TIME  will get it from ztable and TO DATE & TO TIME values as SY-DATUM & SY-UZEIT. In the end I will update sy-datum and sy-uzeit values in the custom table to get the values ( Use it for from date from time ) for next run of the program.
    This program is mainly used for background job so how do we get the values of from date and from time for the first run of the program ? how do we update the latest date and time details by deleting old date and time details.
    Thanks ,
    Vinay.
    Edited by: Vinay parakala on Apr 22, 2010 9:18 AM

    First of all, I'll suggest to maintain TVARVC instead of doing it in custom table unless you need a complete log.
    As per my understanding, you are trying to fetch some records based on the time period(Delta loads).
    So, you will do an initial run to load the complete data then you will run it for time periods. For example,
    1st Load- 01/01/1991(earliest date possible) - today's date say 03/22/2010
    2nd load- 03/22/2010 - today's date
    so on............
    You have to move the to date values to from date values and to date value needs to be updated by the latest one for each load.
    Do you have any dependency on background job? Please let me know if my understanding is correct or specify your requirement in detail.

  • Setting/changing and using date and time for an alarm.

    While I know how to get the time I'm not sure how to somehow allow the user of the app to change it, save it and then use both the date and time to set off an alarm.
    While this can be easily done using forms my application is purely canvas based so none of that easy to use stuff, I'd have to print the time on the screen then allow the user to change that time, repaint the numbers again while also changing it in system, save the time and date to memory then use it set off an alarm.
    If anyone can link to some good, simple tutorials or explain themselves it'd be appreciated, thanks.

    This may be possible, but it may need a script to launch with firefox...so this may be a skeleton answer.
    A couple of brianstorms to achieve this
    *Cronzilla add on might be helpful [https://addons.mozilla.org/en-US/firefox/addon/cronzilla/]
    *Saved sso login might be in the about:config file page:
    [http://superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on] "securtiy ask for password"
    * you may need to add to the security exceptions the sso login page
    Two things we can do, file a bug to add this to the launch arguments, and find a meantime work around which stackoverflow.com would be a great place to ask this question.

  • Create/update date and time for any object

    Hi All,
    How to find that at what date and time at which perticular object is created or updated.
    Thanks,
    Nitesh

    Example below:
    [email protected]> alter session set nls_date_format='dd-mm-yyyy hh24:mi:ss'
    2 /
    Session altered.
    [email protected]> select owner, object_name, last_ddl_time
    2 from dba_objects
    3 where owner = 'MOB' and object_name = 'T';
    no rows selected
    [email protected]> create table t(id int);
    Table created.
    [email protected]> select owner, object_name, last_ddl_time
    2 from dba_objects
    3 where owner = 'MOB' and object_name = 'T';
    OWNER OBJECT_NAME
    LAST_DDL_TIME
    MOB T
    30-08-2006 14:15:58
    [email protected]> column object_name format a30
    [email protected]> /
    OWNER OBJECT_NAME LAST_DDL_TIME
    MOB T 30-08-2006 14:15:58
    [email protected]> alter table t add x int;
    Table altered.
    [email protected]> select owner, object_name, last_ddl_time
    2 from dba_objects
    3 where owner = 'MOB' and object_name = 'T';
    OWNER OBJECT_NAME LAST_DDL_TIME
    MOB T 30-08-2006 14:16:25
    Best Regards
    Krystian Zieja / mob

  • Personal Data and Address for Country Grouping 99 - error on ESS

    Hello All,
    I have configured personal data and address infotypes in ESS for the country grouping 99.
    I have done the following config
    1. Assign Screen Structure to Infotype Versions
    2. Define Active Subtypes and Use Case
    3. Define Country-Specific Applications
    4. Created a Z service and then assigned this service to subarea.
    I made use of US service and copied to z.
    after the config when i log on to the portal and check the personal data or address links am getting the error:
    An exception occurred that was not caught., error key: RFC_ERROR_SYSTEM_FAILURE
    the st22 dump is
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "HRXSS_PER_CLEANUP" "(FUNCTION)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component.
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    I searched in the forum but still am unable to figure it out where i am wrong or missing any config or any other technical error.
    Can any one pls help me

    http://wiki.sdn.sap.com/wiki/display/ERPHCM/HowtoReuseCountryspecificapplicationsforMolga99
    check the steps in above link
    and also please check with some standard country like india 40 or usa 10 what use cases and time constraints have been set
    INFTY - Now specifies the infotype.
    USECASE - Corresponds to the value in the table V_T7XSSPERSUBTYP.
    ZEITB - Corresponds to the value in the table V_T591A (V_T582A).
    Page 2
    SUBTYPE_TAB - Here, you will find a list of the subtypes that have
    already been checked and that are correct.
    You then find the subtype in METADATA-SUBTY. However, you must move up
    one subroutine in the call hierarchy in advance to do this.
    This data makes it easy for you to identify the infotype and the subtype
    and correct the inconsistency by making entries in the tables mentioned.
    ie
    T_cd:SE24 >>CL_HRPA_PERNR_INFTY_XSS >> CHECK_USECASE_WITH_CONSTRAINT >>
    for
    usecase = A1, A4, B1, B4 (table V_T7XSSPERSUBTYP)
    you need to have
    zeitb = '1' OR zeitb = '2' (table V_T591A)
    for
    usecase = A2, A3, A5, B2, B3, B5
    you need to have
    zeitb = '2'
    for
    usecase = A6, B3
    you need to have
    Zeitb = '3'

Maybe you are looking for