[
https://issues.apache.org/jira/browse/OFBIZ-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172094#comment-13172094
]
Nicolas Malin commented on OFBIZ-3913:
--------------------------------------
Jacques, do you uncomment seca ?
Index: framework/example/servicedef/secas.xml
===================================================================
--- framework/example/servicedef/secas.xml (révision 1207784)
+++ framework/example/servicedef/secas.xml (copie de travail)
@@ -27,4 +27,13 @@
<condition-field field-name="statusId" operator="not-equals"
to-field-name="oldStatusId"/>
<action service="createExampleStatus" mode="sync"/>
</eca>
+ <!-- Active this seca to use externalDevice with demo data ->
+ <eca service="createExample" event="return">
+ <set field-name="userLoginId" env-name="userLogin.userLoginId"/>
+ <set field-name="screenLocation"
value="component://example/widget/example/ExampleScreens.xml#ExampleReport"/>
+ <set field-name="content-type" value="application/pdf"/>
+ <set field-name="screenContext.exampleId" env-name="exampleId"/>
+ <action service="sendPrintFromScreenByUserAction" mode="sync"/>
+ </eca>
+ -->
</service-eca>
> 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, 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