IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#37159 - 09/12/11 04:10 AM redirecting PGC file for multiple capture process
cube Offline
OL User

Registered: 09/03/10
Posts: 76
Hello,

I have more than one "process pgc" capture process that kick off when the anoto pen is docked. The Anoto pen director is configured to write the pgc file from the pen to folder when it is docked.

Each one of the process corresponds to different applications and does different things than the other. e.g. one sends out an email with a signed PDF and the other does not. Only one pen is being used to write on capture ready documents corresponding to each of these different capture applications. The "process pgc" process for each of these applications captures PGC from different folders and not a common one.

Currently what I am doing is, when I have to use a particular capture pgc process I go to anoto pen director and change the folder path to the folder location where this process is set do folder capture from.

I would like eliminate this manual process of changing the folder location everytime I need to use a different capture PGC process. Is there any method to accomplish this?

Thanks in advance!
_________________________
There is no Knowledge that is not Power - MK

Top
#37169 - 09/12/11 11:11 AM Re: redirecting PGC file for multiple capture process [Re: cube]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Cube,

Depending on how your solution works, one way may be to use the Capture Conditions. It would check for values in fields of a specific name, and would redirect the output to the proper branch. So let's say the form you want to email has a Capture field called "MyField", you could then make a condition to look for ink in the field "MyField". If there's ink in it, it will go to the True branch. If not, or if the field "MyField" doesn't exists, it will go to the False branch. You can then do what you need to do in the various branches.

You can find more information about the Capture Conditions here:

http://help.objectiflune.com/en/planetpress-workflow-user-guide/CaptureCondition.html


Note that this will only work if there's a way to differentiate the various jobs based on the Capture Fields. If the forms are identical, and there's no way to know which one does what, then you'll have to either continue to manually change the folder, or use more than one pen. (one pen for one form, another pen for another form)

Regards,
Raphaël Lalonde Lefebvre

Top
#37171 - 09/12/11 11:23 AM Re: redirecting PGC file for multiple capture process [Re: cube]
Benoit Potvin
Unregistered


Hi cube,

I see 2 alternatives (there are certainly more), each involving a single folder where PGC are stored.

1) If the decision to route the document is data-driven (i.e. it is based on information contained in the document or in the pen marks), then have the process_pgc process use conditions plug-ins to route the PGC to folders monitored by other processes corresponding to the applications (like Raphael explained above).

2) If the decision to route the document is taken arbitrarily, the we have no choice but to provide a control panel to let a human decide what to do: you could have the process_pgc save the PGC locally in a folder accessible through a web interface (i.e. using HTML forms) allowing the user to select a PGC, select a process, then start the selected process with the selected PGC by clicking on a submit button. PlanetPress Watch's HTTP Server could handle such a form and route the PGC's to appropriate processes.

So the question is: How do you decide which process should start? Is it based on where pen mark are present or absent? On the type of document? Time of day? etc.


Hope this helps!


Edited by Benoit Potvin (09/12/11 11:24 AM)

Top
#37239 - 09/18/11 10:02 AM Re: redirecting PGC file for multiple capture process [Re: ]
cube Offline
OL User

Registered: 09/03/10
Posts: 76
Hello Benoit and Raphaël,

Thanks for your responses. Raphaël's solution is the one I was looking for. However, it does require that ink be present in atleast one capture field, the easiest way to do this would be to make atleast one capture field mandatory in each of the applications and name them different in each application. We can then redirect the pgc files using capture conditions.

This also means that if in a form, if all the fields are non-mandatory, then we will have to check for ink within all the non-mandatory fields?, how do we overcome this?
_________________________
There is no Knowledge that is not Power - MK

Top