Commit c9ad4ae1 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use discoverMetaData API instead of interaction workflow.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16989 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58095c82
......@@ -65,7 +65,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].receive()\n
<value> <string>"""\n
This script is invoked at the end of ingestion process.\n
The default behaviour is to receive messages so that they\n
are marked as \'New\' and appear in the worklist.\n
"""\n
context.receive()\n
</string> </value>
</item>
<item>
......@@ -88,7 +93,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -108,15 +113,14 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>context</string>
</tuple>
</value>
</item>
......@@ -133,7 +137,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>receiveEvent</string> </value>
<value> <string>Event_finishIngestion</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>receiveEvent</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Each time a file is uploaded into an event, it should be considered as a new message.</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Event_upload</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_setFile</string>
</list>
</value>
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Fax Message</string>
<string>Letter</string>
<string>Mail Message</string>
<string>Note</string>
<string>Phone Call</string>
<string>Visit</string>
<string>Web Message</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Upload Event Message</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -65,7 +65,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].receive()\n
<value> <string>"""\n
This script is invoked at the end of ingestion process.\n
The default behaviour is to receive messages so that they\n
are marked as \'New\' and appear in the worklist.\n
"""\n
context.receive()\n
</string> </value>
</item>
<item>
......@@ -80,9 +85,15 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -102,15 +113,14 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>context</string>
</tuple>
</value>
</item>
......@@ -127,7 +137,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>receiveEvent</string> </value>
<value> <string>DocumentIngestionMessage_finishIngestion</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>receiveEvent</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Each time a file is uploaded into an event, it should be considered as a new message.</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>DocumentIngestionMessage_upload</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_setFile</string>
</list>
</value>
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Document Ingestion Message</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Upload Message</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment