You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Nicolas Malin (Updated) (JIRA)" <ji...@apache.org> on 2012/02/14 19:52:01 UTC

[jira] [Updated] (OFBIZ-3913) Automated action triggered by event

     [ https://issues.apache.org/jira/browse/OFBIZ-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Malin updated OFBIZ-3913:
---------------------------------

    Attachment: OFBIZ-3913.patch

Hi Jacques,

I update the patch :
 * externalDeviceId field use sequence
 * update call printer (error on locale = null, that break properties system)

For your case, set PDFCreator on cmdToCall, with cups system I set the printerName on this field.

Example, with lpc status on my system :
LaserCouleur:
	l’imprimante correspond au périphérique « socket », débit -1
PDF:
	l’imprimante correspond au 
Stylus-Photo-870:
	l’imprimante correspond au périphérique « usb », débit -1


to use LaserCouleur I create:
<ExternalDevice cmdToCall="LaserCouleur" description="Imprimante Laser" deviceLocation="Bureau" externalDeviceId="10000" externalDeviceTypeId="PRINTER" statusId="DEVICE_ENABLED"/>

On windows system ... I don't know. I hope it's will ok for you.
                
> Automated action triggered by event
> -----------------------------------
>
>                 Key: OFBIZ-3913
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3913
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Nicolas Malin
>            Assignee: Jacques Le Roux
>         Attachments: ExternalDevice.patch, ExternalDevice.patch, ExternalDevice.patch, ExternalDevice.png, OFBIZ-3913.ogv, OFBIZ-3913.patch, OFBIZ-3913.patch, OFBIZ-3913.patch, PDFCreator.png, What I did with PDFCreator.jpg
>
>
> Following a thread on the dev list, related to a printer automated selection, by an user and an event, here is a first draft.
> I added a new entity, ExternalDevice, which list all devices OFBiz can reach (and the associated command). This entity is related to an ExternalDeviceType and each record has a status, so we know if the device is available, out of order, in maintenance, waiting, etc...
> Then I added another entity, ExternalDeviceUserAction, which defines a device for an user, and/or an action through Enumeration. Finally, I added a service which find the commnand to execute based on an action and/or an user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira