Skip to content

Instantly share code, notes, and snippets.

@avasyukov
Last active December 20, 2015 18:48
Show Gist options
  • Save avasyukov/6178164 to your computer and use it in GitHub Desktop.
Save avasyukov/6178164 to your computer and use it in GitHub Desktop.
<type name="alvexcourse:approveTask">
<!-- Parent changed from bpm:workflowTask to bpm:activitiOutcomeTask -->
<parent>bpm:activitiOutcomeTask</parent>
<!-- Custom property with constraint that defines possible outcome options -->
<properties>
<property name="alvexcourse:okOutcome">
<type>d:text</type>
<default>OK</default>
<constraints>
<constraint type="LIST" name="alvexcourse:okOutcomeConstraint">
<parameter name="allowedValues">
<list>
<value>OK</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</properties>
<!-- Override bpm:outcomePropertyName with our custom property -->
<overrides>
<property name="bpm:outcomePropertyName">
<default>{http://alvexcore.com/prefix/alvexcourse}okOutcome</default>
</property>
</overrides>
</type>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment