Verify that a task has an attachment before complete it

Hello,
I want to verify (java code) that a task has an attachment. The example is that a user can't complete the task until he has uploaded a file to it.
I'm searching for java code or something about BPM APIs but I still can't find information.
Thanks & Regards
SU

Hi,
BPM API would be available starting 7.3 and currently the attachments functionality does not provide a way to extract/ceck the attachments in any way. Also the attachments are lost once the process is completed.
You may go for the custom (WDP) development for uploading and downloading files in a task.
Cheers,
Arafat

Similar Messages

  • Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file [help]

    Hi,
    I have a excel file that I have been using since beginning of year.
    Yesterday, I tried to open it but a message comes out "
    Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file"
    After I click yes, the page is blank. The file is about 400kb in size.
    I have try open and repair and third party repair program and not working also.
    I would appreciate a lot if you can help me.
    Thank you very much.

    Per your post, this problem might be caused by malware on the affected machine.
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    In order to clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx) to kill the malware, and then repair Excel file itself.
    If this is not the case, feel free to post back and let me know. Thanks.
    Tony Chen
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Verify that this class has been marked with the @Entity annotation

    Hi,
    We have a App level shared lib which does all the JPA related query for an app. And each app can utilize the share lib to get the JPA related query to be done.
    For scoping the JPA between App . We have created EMF for each app.
    When one app run and does any JPA related action it works fine , but when we try to run second app we are seeing the following error when trying to do JPA specific action .
    the @Entity annotation.
    [2012-05-23T04:08:16.839-07:00] [WC_Spaces] [ERROR] [] [oracle.webcenter.spaces] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] [[
    java.lang.IllegalArgumentException: Unknown entity bean class: class oracle.webcenter.spaces.internal.repository.WcSpaceHeader, please verify that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)
    at oracle.webcenter.spaces.internal.repository.SpaceRepositoryUtils.refreshSpaceRows(SpaceRepositoryUtils.java:1791)
    Where WcSpaceHeader is an Entity.
    For creating emf per App this is the code
    private static EntityManagerFactory getEntityManagerFactory()
    String appName=Utility.getApplicationName();
    EntityManagerFactory emf=sEntityMgrFactory.get(appName);
    if(emf==null)
    emf=Persistence.createEntityManagerFactory("SpacesReposPUnit");
    sEntityMgrFactory.put(appName,emf);
    SpacesConstants.LOGGER.info("Caching" +
    "EMF for " +appName);  
    return emf;
    My persistence.xml
    <?xml version="1.0" encoding="US-ASCII" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="SpacesReposPUnit" transaction-type="RESOURCE_LOCAL">
    <provider>
    org.eclipse.persistence.jpa.PersistenceProvider
    </provider>
    <class>oracle.webcenter.spaces.internal.repository.WcSpaceHeader</class>
    <class>oracle.webcenter.spaces.internal.repository.WcSpaceUsrDetail</class>
    <class>oracle.webcenter.framework.service.jpa.WcCommonXlationEntity</class>
    <class>oracle.webcenter.spaces.internal.repository.WCNavigationActivity</class>
    <properties>
    <property name="eclipselink.session.customizer"
    value="oracle.webcenter.spaces.internal.repository.SpacesEclipselinkSessionCustomizer"/>
    </properties>
    </persistence-unit>
    </persistence>
    One more problem i am seeing in this is that . When i create an EM from EMF (which is diff for diff app) and doing some query i am getting a class cast Exception.
    (self-tuning)'] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] [[
    java.lang.IllegalArgumentException: Unknown entity bean class: class oracle.webcenter.spaces.internal.repository.WcSpaceHeader, please verify that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)

    This is a class loader issue, somehow you have deployed the same classes in two places, so have two different versions of the classes.
    How, exactly have you deployed things, where are your domain classes?
    The issues is most likely that,
    Persistence.createEntityManagerFactory("SpacesReposPUnit");
    will always return the same factory once it has been deployed.
    If you pass a properties map to createEntityManagerFactory and set the property "eclipselink.session-name" to a unique value, then you should get a new factory.

  • How to verify that trust relationship has been set up successfully at client machine ?

    Hello,
    There is trust set up with domain group.Would you please let me know how can I verify that trust relationship has been set up correctly in such a way that i can see the users of trusted group on client machine ?
    Any idea?
    Note :I do not have access on Domain Controller.
    Thanks and Regards,
    Dipti
    Dipti Chhatrapati

    Hi
    As far as I know, trust certificates that have been exchanged between the SharePoint farm and external systems should be visible by going to  the Central Admin->Security->Manage Trusts page.
    Kind Regards
    Bjoern
    http://www.sharepointviking.com
    Twitter: Follow @bjoern_rapp

  • How to verify that the request has been moved to Quality System

    Hi friends,
    I a new abaper and i need ur help in solving this issue.
    I have developed an object and released( as per the suggestions given already in this forum). Its working well and i can see the request in released status in se09.
    No what i really want is , How can i verify that the request has been moved to Quality System by the basis people, assuming that i have only access to dev system.

    Yes, once u release the request, if it is successfullly released will make the request avaialble under released requests
    As an ABAP'er this is enof
    <b>wht abt me Sravanan :-(</b>
    Regards
    - Gopi
    Message was edited by: Gopi Narendra

  • How to verify that the user has changed table row data before db update

    Hi all,
    Iam using Oracle ADF with EJBs.
    I have a single selection table that displays rows of data returned from a function of my data control.
    The columns of my table are editable so that the user can change the data. The user selects a row, changes the data in one or more columns of the row and saves the data by means of a submit button. The code in the submit button, identifies the row of the corresponding iterator that the user clicked on and updates the data in the database (using the 'mergeEntity' function of the EntityManager)
    Before saving the data, I want to put some logic to check whether the user has actually changed some data to avoid unnecessary updates in the database . But for this I need a technique to detect that the user has indeed changed some data in the table row.
    One technique I have been using so far was to isolate the iterator row of the table and then query the corresponding row in the database table and compare their values.
    Except from dummy, this technique is not efficient if the table contains many rows.
    Moreover, in my case I have observed that on successive updates on the same row , the query on the database returns the new values (user changed values) and not the actual values contained in the database table. This means that when the user updates an iterator row the cached data affect also the results of the SELECT statement from the actual database table!!! Isn't this strange ?
    Can somebody propose me a neat method to detect when the user has changed the the data of an iterator row ?

    Hey Alan,
    The below solution seems overly complicated to me and can not be implemented without a custom screen and/or the use of JavaScript. Also, if your main concern is that a user may accidentally loose all their data because they closed the browser window or the session times out before they hit the save button then this solution does not help you.
    There are a couple of simpler approaches you can take here:
    # If the use of JavaScript is permissible you can hook into the windows 'onUnload' event, and pop-up a message box which gives the user the opportunity to cancel closing the window and save their case if they haven't already.
    # Implement an autosave feature by hooking into one of events provided by web determinations. A simple (but rather naive) way of doing this would be to hook into the OnRenderScreenEvent and call save on the interview session every time the event fires. This guarantees that all the data the user has submitted will aways automatically be saved, thereby removing the need to make sure the user manually saves their data before closing the browser.
    Automatically making Web Determinations close a browser window has to be done using JavaScript. However, doing so means that a) it won't work for people who turn off JavaScript, which is commonly done for accessibility reasons b) you'll likely run afoul of the browser's security mechanism (they generally won't let you close a window that you didn't open and some really don't like you doing that at all).
    Thanks,
    Kristy

  • Way to visually alert a user that a PDF has an attachment

    When a PDF document has an attached file, is there a quick and easy way (script perhaps) to detect that and alert the users to that fact ?
    Again those darn users 

    Try this to work with it:
    var oAttachment = event.target.dataObjects;
    if(oAttachment == null){
         xfa.host.messageBox("number of attached files: 0");
    }else{
         xfa.host.messageBox("number of attached files: " + oAttachment.length);

  • How can i organise that my website has an icon before the name when someone puts it on his bar or tab?

    I am a small publisher that wants to improve his website.
    How can I organise that an icon links to my website name when you put it on a bar/tab?

    IMP_ATGordon wrote:
    ... there's just a blank space where the .flv should be. (This also happens on computers running XP and Mac OSX.)
    To clarify, it's the problem of inconsistency that persists. That is, the application displays fine on some XP computers, but not on others.

  • Now that iTunes Match has hosed my library completely...how do I EASILY get back the albums and songs they didn't match from my hard drive?

    iTunes match is a mess.  I am not going to go into all the details unless specifically asked but it's useless.  Now that I've turned it off I have found that the songs that iTunes could not Match to the iCloud iTunes is no longer able to find!  So it wants ME to manually match each song to the location on my hard drive.  This is an Apple joke right?
    There has got to be a better way!  Restore from backup...love to!   Will that pull all my music if I was using iTunes Match at the last synch?  Help a girl out...I just want my music back.
    Sincerely,
    And Irish girl who is NOT smiling!

    The details are important - you'll have to spill them all, at lest the relevant ones, because this isn't a game of 20 questions. But I'll bite anway -
    Are you using iTunes on a Mac or a PC?
    iTunes 10 or iTunes 11?
    Did you add the files before turning on match, or after? or both (if both, which batch were the missing files in)?
    After you turned on match, did you delete your files thinking you no longer need them?
    Did you have iTunes set to copy and organize your files, or had you taken the manual route? (the settings are in iTunes Preferences, under "Advanced")
    Have you recently renamed your hard drive, or some of your folders, or moved a folder that had music in it?
    Does the location of your music library in iTunes Preferences --> Advanced match the actual location of your music?
    Right-click one of the missing songs, and choose "Get Info" - does the location of the file match where it really is on the hard drive? If not, what's different?
    Do you care about things like play counts, last played dates etc.? If not, you can just re-add all your music files (basically, start over fresh)

  • Determine all objects that a group has been assigned to

    I am trying to determine all objects that a group has been assigned to. For example, I would like to know what communities and portletes a group has been assigned to.
    I can retrieve the information directly from the plumtree database, however, I have not been able to determine how to accomplish this via the api.
    I have tried the following
    IPTObjectManager ptObjMng = ptSession.GetCommunities();
    for(inti = 0; i<3;i++)
    filter[i] = newObject[1];
    filter[0][0] = PT_PROPIDS.PT_PROPID_USERGROUP_GROUPID;
    filter[1][0] = PT_FILTEROPS.PT_FILTEROP_EQ;
    filter[2][0] = 1634; //group id for my group
    IPTQueryResult ptResult = ptObjMng.Query(PT_PROPIDS.PT_PROPID_ALL,-1,PT_PROPIDS.PT_PROPID_NAME,0,-1,filter);
    I have verified that the group has been assigned to the community, however, this query returns no records.
    How can I retrieve all communities or group that a specific group has been assigned too?
    thanks in advance

    This sure would be a handy feature! iTunes has it so that you can easily tell which playlists a song is in. It would be convenient for iPhoto as well.

  • I want to download a free ap, i get the verification required message and sign in. But then i get a notice telling me that "Your acct has been accessed from a new computer or device, and you must verify your payment info before you can make purchases."

    I noticed that my credit card info is old.  I'm wonering if that could be the reason for the notice.  OR does it reallly mean that my account has really been accessed by another source?  Of course, this is the first time seeing this and it's Easter!
    Any help greatly appreciated.
    lisa1952

    It means that is is the first time that the device that you are using has been used to make a purchase in the iTunes Store.
    I get the same message whenever I buy a new iPhone or iPad. It's normal.

  • HT1923 I'm trying to re-install itunes on my laptop & I am getting a message that has stopped the re-install & it says: "Service 'Apple Mobile Device" (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system servic

    I'm trying to re-install itunes on my laptop & I am getting a message that has stopped the re-install & it says: "Service 'Apple Mobile Device" (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services."  The diaglogue box gives me the options to abort, retry, or ignore; when I tried retry and ignore the re-install process stays stalled & the dialogue box comes back & I don't want to abort & start this all over to probably end up with the same issue; what does this mean & what do I do?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • How to download an app *not* from icloud that has been downloaded before with a different account?

    Greetings,
    If an app has been downloaded before even with an account other than the one I am signed in with, it shows the cloud icon and asks me for the password of the other account.
    How do I download it with the account I am currently logged in with?
    Thanks

    "I'm using the one on the computer, not the device."
    Well I said this is happening on an iPad. Reread what is happening from the beginning of the thread, and tell me if the instructions are correct for the iPad. Are you prompted for passwords from a different account that previously downloaded the app on the iPad?
    Again
    The app is Google Search.
    It is free.
    (I am always promoted for passwords for both free and paid apps.)
    The device is an iPad. That is why I posted this is the iPad discussion.
    I am logged in with my account, let's call it A. It shows account A next to Apple ID in the lower left of the Featured page.
    When I search for Google Search, and click the cloud download icon next next to the Google Search app, it prompts me for the password to a different account. Let's call it B.
    In the app store it shows a cloud download icon next to every app that has ever been downloaded on this iPad, regardless of whether it is account A, B, C, etc
    Have you tried logging in with a different account to test this?

  • When  i play a song from my itunes library, there is a short "buzzing" sound about every 20-30 seconds. I had the problem before and thought it was fixed after verifying that itunes was my default player. Any ideas to fix the problem now??

    when i play a song from my itunes library, there is a short "buzzing" sound about every 20-30 seconds. This same thing happened some time ago, and i thought i had it sovled by verifying that itunes was my default player. Howerver, it has started up again. Any ideas how to fix the problem??

    I am having the same problem I have over 11.5 GB of .tmp files, many 1000s. Here is a thread I have found with some more info:
    http://discussions.apple.com/thread.jspa?messageID=824308
    That thread is almost a year old so I'm not holding out hope for a fix from apple. I'm going to try deleting them and see how it goes...

  • HT4859 How can I verify that my App data is actually stored in iCloud. With Dropbox, I can actually see my stored files. With iCloud, itseems I'm supposed 2 just trust that Appl has the data. Short of doing a restore is there no way to check the data?

    How can I verify that my App data is actually stored in the iCloud. I can see and access my notebook, contacts etc. on the iCloud website, and I can see my photos in a folder on my Windows-based desktop compter (iCloud/Photostream). But no app data.
    With Dropbox, I can actually see all of my stored files. With iCloud, it seems, I'm supposed to just trust that Apple has my back. Short of deliberately trashing my app data and then attempting a restore, is there no way to check the data?

    You can't access them on Windows (unless you have iCloud enabled Windows programs) and I don't think any are, yet.
    iCloud data is accessed via Apps/Programs, the Windows programs vendors will have to step up (just to make it worse Microsoft have not yet enabled their Mac programs, such as Office yet) I doubt that iCloud access is much of a priority for them, complain to MS, when enough Windows users complain maybe they'll do something.

Maybe you are looking for