<?xml version="1.0"?><workflow name="Stornieren" trigger="CancelOrder" start="#127" executeLive="False" runIfMissed="False"><step id="#123" name="GetCartId" action="Centauri.Shop.Workflows.Database.SQLQuery"><data><command><![CDATA[select GUID as checkValue from sessiondata join sahtypes on sessiondata.shipment=sahtypes.SAHID where [GUID]=@cartId and cancellable=1 and isnull(sessiondata.[status],'') != 'CANCELED' and sahtypes.Name = 'STRIPE']]></command><parameter><![CDATA[checkValue]]></parameter><ignoreerror><![CDATA[false]]></ignoreerror></data><transition destination="#124" success="yes" /></step><step id="#124" name="Check CartId" action="Centauri.Shop.Workflows.Process.CheckValue"><data><parameter><![CDATA[checkValue]]></parameter><value><![CDATA[]]></value></data><transition destination="#125" /></step><step id="#125" name="Stripe Stornieren" action="Centauri.Shop.Workflows.HTTP.POST"><data><url><![CDATA[https://spiral-dev.centauri.at/Stripe/Refund]]></url><username><![CDATA[]]></username><password><![CDATA[]]></password><tid><![CDATA[]]></tid><filename><![CDATA[]]></filename><folder><![CDATA[]]></folder><parameter><![CDATA[cancel/cartId]]></parameter></data><transition destination="#126" success="yes" /></step><step id="#126" name="Update Status" action="Centauri.Shop.Workflows.Database.SQLCommand" final="yes"><data><command><![CDATA[update sessiondata set status='CANCELED' where [GUID]=@cartId]]></command><ignoreerror><![CDATA[]]></ignoreerror></data></step><step id="#127" name="Parameter setzen" action="Centauri.Shop.Workflows.Process.Get"><data><parameter><![CDATA[cartId]]></parameter><xpath><![CDATA[cancel/cartId]]></xpath></data><transition destination="#123" success="yes" /></step><mapping origin="*" /></workflow>