Commit 4f08b1fe authored by Rafael Monnerat's avatar Rafael Monnerat

Events without Follow up should not acknowledge

Ingested event which does not have Follow up should not use acknowledge transition. Do this is not consistent (fail checkConsistency)
parent 0065fca7
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string encoding="cdata"><![CDATA[
"""\n
This script is invoked at the end of ingestion process.\n This script is invoked at the end of ingestion process.\n
The default behaviour is to receive messages so that they\n The default behaviour is to receive messages so that they\n
are marked as \'New\' and appear in the worklist.\n are marked as \'New\' and appear in the worklist.\n
...@@ -179,7 +181,8 @@ if context.getPortalType() == \'Web Message\' and\\\n ...@@ -179,7 +181,8 @@ if context.getPortalType() == \'Web Message\' and\\\n
# event_workflow\n # event_workflow\n
if portal_workflow.isTransitionPossible(context, \'receive\'):\n if portal_workflow.isTransitionPossible(context, \'receive\'):\n
context.receive()\n context.receive()\n
if portal_workflow.isTransitionPossible(context, \'acknowledge_event\'):\n if len(context.setFollowUpList()) > 0 and \\\n
portal_workflow.isTransitionPossible(context, \'acknowledge_event\'):\n
portal_workflow.doActionFor(context, \'acknowledge_action\',\n portal_workflow.doActionFor(context, \'acknowledge_action\',\n
create_event=False)\n create_event=False)\n
\n \n
...@@ -188,7 +191,9 @@ if portal_workflow.isTransitionPossible(context, \'stop\'):\n ...@@ -188,7 +191,9 @@ if portal_workflow.isTransitionPossible(context, \'stop\'):\n
context.stop()\n context.stop()\n
if portal_workflow.isTransitionPossible(context, \'deliver\'):\n if portal_workflow.isTransitionPossible(context, \'deliver\'):\n
context.deliver()\n context.deliver()\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
......
562 563
\ No newline at end of file \ No newline at end of file
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