Skip navigation
Currently Being Moderated

XML watched folder and process invoke

Sep 3, 2007 12:23 AM

hello,

We are trying to create an application that will merge XML data and pdf form and initiate workflow.
Is it possible with existing components (without need for customization) to
create an process in which we deploy XML files in watch folder and after that the form with populated XML data will occur in "to do list" of particular user?
If you could describe some details I would appreciate!
 
Replies
  • Currently Being Moderated
    Sep 4, 2007 5:27 AM   in reply to (Stipe_Pavicic)
    This is definitely possible without customization.

    The first thing you need to do is build a process that has an IN variable of type Document.

    Then set a watch folder endpoint on that process so you can drop the file on the file system. It'll then populate the IN variable of type Document with the content of the file (xml). You need a document variable for later when using LC Forms, otherwise you could use an XML type.

    In your process, you'll need to create a variable of type xfaForm and initialize it to point to your xdp in the resource tab. This is the form the user will see in workspace. Also you'll want configure the render service (under Advanced Settings) to point to the Sample Forms/ RenderPDFForm. Set the data parameter to be the document variable that contains the xml. If the xml is in the right structure, then it should populate your PDF properly.

    The last step is to add a User operation and assign the xfaForm for the Input Form variabale.

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 10, 2007 11:33 AM   in reply to (Stipe_Pavicic)
    This doesn't seem like a watch folder issue. If it's a watch folder issue you would see a file in the error folder.

    Sending the lca won't help much since it doesn't carry the end point information.

    Just create a simple process with one operation. Perhaps a setValue operation. Save and Activate and we'll work from there.

    Also can you tell me what are your watch folder end point configuration settings?

    What is you environment (App Server, DB, OS)?
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 11, 2007 5:47 AM   in reply to (Stipe_Pavicic)
    I think the problem is with the watch folder endpoint settings.

    So I'll wait until you post the configuration settings.

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 11, 2007 7:04 AM   in reply to (Stipe_Pavicic)
    That's fine. So now in your process, what is the type of the IN variable that you've defined?

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2007 4:56 AM   in reply to (Stipe_Pavicic)
    You have two IN/Required variables: initForm and IN but seems that you're only dropping one file in the watch folder (by looking at the watch folder settings). That would create a problem since it expects two.

    Remove the "in" and "required" property of the initForm variable and see if that gets you through.

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2007 5:40 AM   in reply to (Stipe_Pavicic)
    Can you just go back to the watch folder endpoint configuration page and make sure the binding is updated accordingly.

    Can you post the picture on you Picasa web site and the updated error log?

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 4:25 AM   in reply to (Stipe_Pavicic)
    I just created a similar application from scratch. I created a new process with only 1 user operation. Then created two variables 1 document and 1 xfaForm. Set the document variable to be IN.

    The created a watchfolder end point and it all worked.

    Im starting to wonder if there was a problem with your installation.

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 4:26 AM   in reply to (Stipe_Pavicic)
    From Stipe:

    Hello Jasmin!

    I've imported your archive file, and created an watch folder endpoint, but
    it again is not working!!!
    I'm just installing another win server2003, and I'll install new LiveCyce server..
    I'll send you the results!

    But during the installation of LC on this present server, everything went just fine!
    without any error.....It's really strange..

    Thank you 1again, and I'll keep you informed!
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 4:26 AM   in reply to (Stipe_Pavicic)
    Hello Jasmin!

    I just want to inform you that the process is finally working!!!
    Thank you a lot!

    but now, I have another question. In the watch folder I'll be dropping
    2 files, one is the xml and another will be the picture. I want to
    populate the form with xml data (now we finally got this working) and the
    picture should be attached to the form.
    Now, I was at Avoka website and for the version LC 7 they have an
    QPACK "Attach file".
    Now, is the attaching process standard functionality of ES or we must
    tell to the customer that they have to buy this qpack?
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 4:33 AM   in reply to (Stipe_Pavicic)
    You dont need to buy another qpac to do that. Go under the Attachments and Notes section on the User operation. Select the option Copy all notes and attachment from and then specify a list variable that contains the attachments.

    Add a set value operation to be the first step in your process and use xPath to add the image from the image variable to the list using something like /process_data/myList[1] = /process_data/@myImageVar

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 4:41 AM   in reply to (Stipe_Pavicic)
    Hi Stipe

    Actually, the Avoka AttachFileToTask attaches a file to a task, rather than to a the Form itself, so this won't help you.

    If you want to attach a picture to a form, you can either:
    1. Use the LC Forms component to attach a file when you do the Render operation.
    2. Create an ImageField on your form, and use Avoka's LC-ES ImageInserter to insert the image directly into the data of the form, and then bind it to your Image Field. This way the image will appear inside your form, rather than attached to it.
    http://avoka.dnsalias.com:8800/confluence/display/Public/How+to+Insert +an+Image+into+a+Form

    Regards,
    Howard
    http://www.avoka.com
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 5:00 AM   in reply to (Stipe_Pavicic)
    PS Jasmin, from Stipe's use-case, it appears to me that he wants the picture to be attached to the Form itself, rather than as an attachment to a task in Workspace.

    However, I may be wrong, and Stipe may be using a User step in his workflow, in which case your solution is obviously correct.

    Stipe, please confirm.

    Regards,
    howard
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 6:50 AM   in reply to (Stipe_Pavicic)
    You might be right Howard.

    I might have assumed it was to the task but when I re-read it, it seems that he wants to attach it to the PDF.

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2007 7:50 AM   in reply to (Stipe_Pavicic)
    Which technique did you use to attach the image?

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 17, 2007 6:55 AM   in reply to (Stipe_Pavicic)
    Hi
    Sorry about the delay in responding.
    We do this all the time.
    One way is just to have a simple large text field, and have people adding to it. However, this relies on them not modifying the content that went previously, and also correctly recording their id and the date, etc.

    We have built a component called Task History, which will automatically insert comments, date, time and user into a repeating area of a form, effectively recording a full audit trail of everyone who's touched the form.

    Unfortunately, the documentation is a bit sparse at the moment, but you can see it here:
    http://avoka.dnsalias.com:8800/confluence/pages/viewpage.action?pageId =1966151

    If you have any questions, please email support@avoka.com

    I'll try to get the docs updated asap, as well as some samples.

    Howard
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 25, 2007 9:49 AM   in reply to (Stipe_Pavicic)
    Can you post some more details about the sample you created where "it all works"? Specifically, what services are being used and can you provide the endpoint settings.
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2007 3:34 PM   in reply to (Stipe_Pavicic)
    I think the discussion has touched several topics now. Are you looking for the endpoint settings form the watch folder.

    What are you trying to do?

    Jasmin
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 23, 2007 12:52 PM   in reply to (Stipe_Pavicic)
    I'm glad to hear that Stipe. I know sometimes it's not easy to get started with LiveCycle, but once you get there it's pretty straightforward and very powerful.

    Good luck in you next project.

    I'm sure we'll talk again :) .

    Jasmin
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)