<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.3.000"> <context> <input/> <output/> <macros> <macro> <key>date</key> <value>2012-01-28</value> </macro> </macros> </context> <operator activated="true" class="process" compatibility="5.3.000" expanded="true" name="Process"> <process expanded="true" height="145" width="279"> <operator activated="true" class="generate_data_user_specification" compatibility="5.3.000" expanded="true" height="60" name="Generate Data by User Specification" width="90" x="112" y="30"> <list key="attribute_values"> <parameter key="date" value="date_parse_custom("%{date}", "yyyy-MM-dd")"/> </list> <list key="set_additional_roles"/> </operator> <connect from_op="Generate Data by User Specification" from_port="output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>
date_parse_custom(%{startdate},"yyyy-MM-dd","de")
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.2.008"> <context> <input/> <output/> <macros> <macro> <key>startdate</key> <value>2012-12-01</value> </macro> </macros> </context> <operator activated="true" class="process" compatibility="5.2.008" expanded="true" name="Process"> <process expanded="true" height="161" width="681"> <operator activated="true" class="generate_data_user_specification" compatibility="5.2.008" expanded="true" height="60" name="Generate Data by User Specification" width="90" x="45" y="30"> <list key="attribute_values"> <parameter key="now" value="date_now()"/> <parameter key="startdate" value="date_parse_custom("%{startdate}","yyy-MM-dd")"/> </list> <list key="set_additional_roles"/> </operator> <operator activated="true" class="generate_attributes" compatibility="5.2.008" expanded="true" height="76" name="Generate Attributes" width="90" x="179" y="30"> <list key="function_descriptions"> <parameter key="diff_to_now" value="date_diff(startdate,now)"/> <parameter key="diff_in_days" value="date_diff(date_parse_custom("%{startdate}","yyyy-MM-dd"),date_parse_custom(date_str_custom(date_now(),"yyyy-MM-dd"),"yyyy-MM-dd"))/86400000"/> </list> </operator> <connect from_op="Generate Data by User Specification" from_port="output" to_op="Generate Attributes" to_port="example set input"/> <connect from_op="Generate Attributes" from_port="example set output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>