Parallel gateway waits despite both incoming flows completed and no condition on outgoing flow? - parallel-processing

I am creating two parallel user tasks in Camunda, lets call them Sign and Parallel.
I need Parallel to end when Sign is completed, so I send message that closes Parallel, correlated by process instance id. But process does not continue any further and waits on joining gateway.
Why does this happen? What is process waiting for?
There is no outgoing condition and both incoming flows should be "finished".
AFAIK correct way is for joining gateway to be parallel.
Nothing changes if I set both throwing/catching events as Asynchronous Before/After.
Message correlates, I do not receive any error (as is the case when I use incorrect message name). Message implementation is in expression and seems to run ok.
It is clear it has to do something with message since removing throw/catch events and
completing both tasks manually will move process to Continue task
Here is the whole process:
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0ojij3f" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:collaboration id="Collaboration_1ozdkce">
<bpmn:participant id="Participant_03ldfi3" name="parallelTest" processRef="parallelTest" />
</bpmn:collaboration>
<bpmn:process id="parallelTest" name="parallelTest" isExecutable="true">
<bpmn:laneSet id="LaneSet_035464k">
<bpmn:lane id="Lane_0k26mop">
<bpmn:flowNodeRef>Event_1hml6oa</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0rkmzqq</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0paxf52</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0kdxi53</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_0wr8eiq</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_17aatvo</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0jj89u4</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_17cvwa6</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_0et01tn</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Event_1hml6oa" name="Start">
<bpmn:outgoing>Flow_1wdtypj</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:parallelGateway id="Gateway_0rkmzqq">
<bpmn:incoming>Flow_1wdtypj</bpmn:incoming>
<bpmn:outgoing>Flow_086eue3</bpmn:outgoing>
<bpmn:outgoing>Flow_1v8wqr7</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:userTask id="Activity_0paxf52" name="Sign">
<bpmn:incoming>Flow_086eue3</bpmn:incoming>
<bpmn:outgoing>Flow_1xnm82g</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Activity_0kdxi53" name="Parallel">
<bpmn:incoming>Flow_1v8wqr7</bpmn:incoming>
<bpmn:outgoing>Flow_10mh6j0</bpmn:outgoing>
</bpmn:userTask>
<bpmn:intermediateThrowEvent id="Event_0wr8eiq" name="Send message" camunda:asyncBefore="true" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1xnm82g</bpmn:incoming>
<bpmn:outgoing>Flow_1quitqe</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_14h1b1s" messageRef="Message_1u77676" camunda:expression="${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation("Signed").processInstanceId(execution.getProcessInstanceId()).correlateWithResult()}" />
</bpmn:intermediateThrowEvent>
<bpmn:parallelGateway id="Gateway_17aatvo">
<bpmn:incoming>Flow_1quitqe</bpmn:incoming>
<bpmn:incoming>Flow_10mh6j0</bpmn:incoming>
<bpmn:outgoing>Flow_12v8new</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:userTask id="Activity_0jj89u4" name="Continue">
<bpmn:incoming>Flow_12v8new</bpmn:incoming>
<bpmn:outgoing>Flow_1wd9ipe</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_17cvwa6" name="End">
<bpmn:incoming>Flow_1wd9ipe</bpmn:incoming>
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_0et01tn" camunda:asyncBefore="true" camunda:asyncAfter="true" attachedToRef="Activity_0kdxi53">
<bpmn:messageEventDefinition id="MessageEventDefinition_0men7xp" messageRef="Message_1u77676" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_1wdtypj" sourceRef="Event_1hml6oa" targetRef="Gateway_0rkmzqq" />
<bpmn:sequenceFlow id="Flow_10mh6j0" sourceRef="Activity_0kdxi53" targetRef="Gateway_17aatvo" />
<bpmn:sequenceFlow id="Flow_1quitqe" sourceRef="Event_0wr8eiq" targetRef="Gateway_17aatvo" />
<bpmn:sequenceFlow id="Flow_086eue3" sourceRef="Gateway_0rkmzqq" targetRef="Activity_0paxf52" />
<bpmn:sequenceFlow id="Flow_1xnm82g" sourceRef="Activity_0paxf52" targetRef="Event_0wr8eiq" />
<bpmn:sequenceFlow id="Flow_12v8new" sourceRef="Gateway_17aatvo" targetRef="Activity_0jj89u4" />
<bpmn:sequenceFlow id="Flow_1wd9ipe" sourceRef="Activity_0jj89u4" targetRef="Event_17cvwa6" />
<bpmn:sequenceFlow id="Flow_1v8wqr7" sourceRef="Gateway_0rkmzqq" targetRef="Activity_0kdxi53" />
</bpmn:process>
<bpmn:signal id="Signal_2pm9l20" name="Signál12" />
<bpmn:signal id="Signal_0lh8jlk" name="Signal_0lh8jlk" />
<bpmn:message id="Message_3enu7h8" name="Message_3enu7h8" />
<bpmn:signal id="Signal_1papr4s" name="Signal_1papr4s" />
<bpmn:signal id="Signal_0n33km6" name="Signal_0n33km6" />
<bpmn:signal id="Signal_0a40rpa" name="Signal_0a40rpa" />
<bpmn:message id="Message_1u77676" name="Signed" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1ozdkce">
<bpmndi:BPMNShape id="Participant_03ldfi3_di" bpmnElement="Participant_03ldfi3" isHorizontal="true">
<dc:Bounds x="160" y="80" width="740" height="330" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0k26mop_di" bpmnElement="Lane_0k26mop" isHorizontal="true">
<dc:Bounds x="190" y="80" width="710" height="330" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1v8wqr7_di" bpmnElement="Flow_1v8wqr7">
<di:waypoint x="340" y="215" />
<di:waypoint x="340" y="180" />
<di:waypoint x="400" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wd9ipe_di" bpmnElement="Flow_1wd9ipe">
<di:waypoint x="810" y="250" />
<di:waypoint x="842" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12v8new_di" bpmnElement="Flow_12v8new">
<di:waypoint x="665" y="250" />
<di:waypoint x="710" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xnm82g_di" bpmnElement="Flow_1xnm82g">
<di:waypoint x="500" y="300" />
<di:waypoint x="522" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_086eue3_di" bpmnElement="Flow_086eue3">
<di:waypoint x="340" y="265" />
<di:waypoint x="340" y="300" />
<di:waypoint x="400" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1quitqe_di" bpmnElement="Flow_1quitqe">
<di:waypoint x="558" y="300" />
<di:waypoint x="640" y="300" />
<di:waypoint x="640" y="275" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_10mh6j0_di" bpmnElement="Flow_10mh6j0">
<di:waypoint x="500" y="180" />
<di:waypoint x="640" y="180" />
<di:waypoint x="640" y="225" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wdtypj_di" bpmnElement="Flow_1wdtypj">
<di:waypoint x="268" y="240" />
<di:waypoint x="315" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_195kvod_di" bpmnElement="Event_1hml6oa">
<dc:Bounds x="232" y="222" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="238" y="265" width="25" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1eubz1s_di" bpmnElement="Gateway_0rkmzqq">
<dc:Bounds x="315" y="215" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_07l0l1t_di" bpmnElement="Activity_0paxf52">
<dc:Bounds x="400" y="260" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1y3uzxd_di" bpmnElement="Activity_0kdxi53">
<dc:Bounds x="400" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0yo6m1f_di" bpmnElement="Event_0wr8eiq">
<dc:Bounds x="522" y="282" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="548" y="269" width="74" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1nbx3kv_di" bpmnElement="Gateway_17aatvo">
<dc:Bounds x="615" y="225" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_09jpbyc_di" bpmnElement="Activity_0jj89u4">
<dc:Bounds x="710" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_17cvwa6_di" bpmnElement="Event_17cvwa6">
<dc:Bounds x="842" y="232" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="850" y="275" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1kbtuoe_di" bpmnElement="Event_0et01tn">
<dc:Bounds x="482" y="162" width="36" height="36" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

Related

how to delete all the line items from the file after the first one

I need to delete all the line items <LineItem> from the file which does not suffice with this requirements:
elements in Line Item : <LineItemNumber V="00000000000000000010" /> and <PurchaseOrderNumber V="0100230946|00010" /> have to be matched, another words in integer Line Item Number would be 10 and Purchase order number after pipe line | would be 10. we need to have only one those line Items which are matching this requirement. Sorry, i'm really bad at describing.
<Transmission>
<InterchangeUsageIndicator V="T" />
<Groups>
<Group>
<GroupSenderID V="CCC" />
<TotalNumberOfShipmentsInGroup V="000005" />
<Documents>
<Document>
<DocumentHeader>
<InvoiceChargeType V="T" />
<DocumentType V="ORDER" />
<DocumentProcessingCode C="00" />
<BOLNumber V="BOL2309460180582136" />
<AlternateQuantities>
<AlternateQuantity Quantity="12.0" UOM="PK" UOMType="SQ" Characteristic="" />
</AlternateQuantities>
<Buyer Name="" Q="ZP" ID="COUSPO001">
<AlternateIDs />
</Buyer>
<Seller Name="" Q="2" ID="CNTR">
<AlternateIDs />
</Seller>
<Parties>
<Party PartyType="SF">
<Name V="SHA" />
<LocationID Q="" ID="" />
<AlternateLocationIDs>
<LocationID Q="" ID="SHA" />
</AlternateLocationIDs>
<City V="Shanghai" />
<Country V="CN" />
<LocationPurpose V="" />
</Party>
<Party PartyType="ST">
<Name V="LEB" />
<LocationID Q="" ID="" />
<AlternateLocationIDs>
<LocationID Q="" ID="LEB" />
</AlternateLocationIDs>
<City V="Lebanon" />
<Country V="TN" />
<LocationPurpose V="" />
</Party>
<Party PartyType="VN">
<Name V="YANGZHOU BAOYI SHOES" />
<LocationID Q="" ID="4100000423" />
<AlternateLocationIDs />
<City V="JIANGSU" />
<Country V="CN" />
<LocationPurpose V="" />
</Party>
</Parties>
<DateReferences>
<DR Type="D" Q="ETA" Date="2019-12-19" />
<DR Type="D" Q="EST" Date="2019-11-28" />
</DateReferences>
<ReservedReferences>
<RR Type="R" Q="K6" V="86|SEAL230946" />
<RR Type="R" Q="V3" V="VYG230946|BKG230946" />
</ReservedReferences>
</DocumentHeader>
<Vessel VesselName="VSL230946" VesselNumber="" VesselCountryOfRegistration="" VesselRegistrationNumber="" />
<Equipments>
<Equipment Initial="CNTR" Number="230946" Length="0" Type="" TotalContainerVolume="52.06" />
</Equipments>
<LineItems>
<LineItem>
<LineItemNumber V="00000000000000000010" />
<LineItemType C="LI" />
<TransportationServiceCode Code="" />
<PurchaseOrderNumber V="0100230946|00010" />
<AdditionalReferenceNumber V="" />
<DescriptionMarksAndNumbers>
<CommodityCode Q="" C="M9160" />
<BuyerProductID V="" />
</DescriptionMarksAndNumbers>
<BilledRatedAsQuantity V="0.0" UOM="PA" />
<LadingQuantity V="0.0" UOM="PA" />
<LineItemTotalAmount V="0.0" />
<LineItemWeight V="0.00" />
<LineItemVolume V="0.00" />
</LineItem>
<LineItem>
<LineItemNumber V="00000000000000900001" /> //this one would not work,because it is 900001
<LineItemType C="LI" />
<LineItemSubType C="SCH" />
<TransportationServiceCode Code="" />
<PurchaseOrderNumber V="0100230946|00010" />
<AdditionalReferenceNumber V="" />
<DescriptionMarksAndNumbers>
<CommodityCode Q="" C="M9160" />
<BuyerProductID V="" />
</DescriptionMarksAndNumbers>
<BilledRatedAsQuantity V="24.0" UOM="PA" />
<LadingQuantity V="24.0" UOM="PA" />
<LineItemTotalAmount V="0.0" />
<UserDefinedReferences>
<UDR Type="U" Q="CR" V="22859470896|001|0001" Description="" />
<UDR Type="U" Q="S6" V="|3|20" Description="" />
<UDR Type="U" Q="19" V="M9160|USDS|0001" Description="" />
</UserDefinedReferences>
<LineItemWeight V="2959.54" />
<LineItemVolume V="104.12" />
</LineItem>
<LineItem>
<LineItemNumber V="00000000000000900002" />
<LineItemType C="LI" />
<LineItemSubType C="SCH" />
<TransportationServiceCode Code="" />
<PurchaseOrderNumber V="0100230946|00010" />
<AdditionalReferenceNumber V="" />
<DescriptionMarksAndNumbers>
<CommodityCode Q="" C="M9160" />
<BuyerProductID V="" />
</DescriptionMarksAndNumbers>
<BilledRatedAsQuantity V="24.0" UOM="PA" />
<LadingQuantity V="24.0" UOM="PA" />
<LineItemTotalAmount V="0.0" />
<UserDefinedReferences>
<UDR Type="U" Q="CR" V="22859470902|001|0002" Description="" />
<UDR Type="U" Q="S6" V="|3.5|20" Description="" />
<UDR Type="U" Q="19" V="M9160|USDS|0001" Description="" />
</UserDefinedReferences>
<LineItemWeight V="2959.54" />
<LineItemVolume V="104.12" />
</LineItem>
I tried to start on LINQ: this is where I got so far:
try {
var xDoc = XDocument.Parse(msg.Body);
var xDocument = xDoc.Root.XPathSelectElement("Groups/Group/Documents/Document");
var xLineItems = xDocument.XPathSelectElements("LineItems/LineItem");
var poNumbers = xLineItems.Select(e => (string)e.Element("PurchaseOrderNumber").Attribute("V")).Distinct();
foreach (var poNumber in poNumbers) {
}
msg.Body = xDoc.ToString();
I believe you would like to Delete all LineItem where LineItemNumber!=10 and PurchaseOrderNumber after the Pipe NOT equals 10. You could use Linq to filter the elements that match the purpose and use the Remove method to deletes the selected nodes.
var xDoc = XDocument.Parse(xml);
xDoc.Descendants("LineItem")
.Where(x=> Convert.ToInt32(x.Element("LineItemNumber").Attribute("V").Value)!=10
&& Convert.ToInt32(x.Element("PurchaseOrderNumber").Attribute("V").Value.Split('|')[1])!=10
).Remove();
var result = xDoc.ToString();

uipath error Click on onbeforeunload popup not working in chrome

I am facing issue with onbeforeunload window event popup in chrome. I have installed chrome extension.
Steps:
Create Open Browser activity with url:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onbeforeunload"\
Create Click Event with selector:
<webctrl aaname='Click here to go to w3schools.com' tag='A' />
Create Click Event with selector:
<ctrl name='Leave site?' role='dialog' /><ctrl name='Leave' role='push button' />
My problem is the second click is not working.
Main.xaml:
<Activity mc:Ignorable="sap sap2010 sads" x:Class="Main" mva:VisualBasic.Settings="{x:Null}" sap2010:WorkflowViewState.IdRef="Main_1"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
xmlns:ui="http://schemas.uipath.com/workflow/activities"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>UiPath.Core</AssemblyReference>
<AssemblyReference>UiPath.Core.Activities</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<ui:OpenBrowser UiBrowser="{x:Null}" BrowserType="Chrome" DisplayName="Open browser" Hidden="False" sap2010:WorkflowViewState.IdRef="OpenBrowser_3" NewSession="True" Private="False" Url="https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onbeforeunload">
<ui:OpenBrowser.Body>
<ActivityAction x:TypeArguments="x:Object">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="ContextTarget" />
</ActivityAction.Argument>
<Sequence DisplayName="Do" sap2010:WorkflowViewState.IdRef="Sequence_25">
<ui:Click DelayBefore="{x:Null}" DelayMS="{x:Null}" ClickType="CLICK_SINGLE" DisplayName="Click 'A https://www.w3school...'" sap2010:WorkflowViewState.IdRef="Click_6" KeyModifiers="None" MouseButton="BTN_LEFT" SendWindowMessages="False" SimulateClick="False">
<ui:Click.CursorPosition>
<ui:CursorPosition Position="Center">
<ui:CursorPosition.OffsetX>
<InArgument x:TypeArguments="x:Int32" />
</ui:CursorPosition.OffsetX>
<ui:CursorPosition.OffsetY>
<InArgument x:TypeArguments="x:Int32" />
</ui:CursorPosition.OffsetY>
</ui:CursorPosition>
</ui:Click.CursorPosition>
<ui:Click.Target>
<ui:Target ClippingRegion="{x:Null}" Element="{x:Null}" TimeoutMS="{x:Null}" InformativeScreenshot="ad281f65b6ab6cc6ce588fb1cf53160a" Selector="<webctrl aaname='Click here to go to w3schools.com' tag='A' />" WaitForReady="INTERACTIVE" />
</ui:Click.Target>
</ui:Click>
<ui:Click DelayBefore="{x:Null}" DelayMS="{x:Null}" ClickType="CLICK_SINGLE" DisplayName="Click 'push button Leave'" sap2010:WorkflowViewState.IdRef="Click_5" KeyModifiers="None" MouseButton="BTN_LEFT" SendWindowMessages="False" SimulateClick="False">
<ui:Click.CursorPosition>
<ui:CursorPosition Position="Center">
<ui:CursorPosition.OffsetX>
<InArgument x:TypeArguments="x:Int32" />
</ui:CursorPosition.OffsetX>
<ui:CursorPosition.OffsetY>
<InArgument x:TypeArguments="x:Int32" />
</ui:CursorPosition.OffsetY>
</ui:CursorPosition>
</ui:Click.CursorPosition>
<ui:Click.Target>
<ui:Target ClippingRegion="{x:Null}" Element="{x:Null}" TimeoutMS="{x:Null}" InformativeScreenshot="a52efda054f51d9ac88fd53b22f4663a" Selector="<ctrl name='Leave site?' role='dialog' /><ctrl name='Leave' role='push button' />" WaitForReady="INTERACTIVE" />
</ui:Click.Target>
</ui:Click>
</Sequence>
</ActivityAction>
</ui:OpenBrowser.Body>
<sads:DebugSymbol.Symbol>dyhFOlxVaVBhdGhXb3Jrc3BhY2VcV2hhdHNhcHBNc2dcTWFpbi54YW1sBzoDYxQCAQE6vQE6iQICAQdACV8UAgECQQtPFgIBBVALXhYCAQNNngFN5AECAQZcngFc/QECAQQ=</sads:DebugSymbol.Symbol>
</ui:OpenBrowser>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="Click_6" sap:VirtualizedContainerService.HintSize="314,106" />
<sap2010:ViewStateData Id="Click_5" sap:VirtualizedContainerService.HintSize="314,106" />
<sap2010:ViewStateData Id="Sequence_25" sap:VirtualizedContainerService.HintSize="336,376">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="OpenBrowser_3" sap:VirtualizedContainerService.HintSize="414,475" />
<sap2010:ViewStateData Id="Main_1" sap:VirtualizedContainerService.HintSize="454,635" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Which not working with script alerts.
Please find the solved workflow here. It's a tricky way to solve your problem.

PhoneGap Build with OneSignal not working

I'm using PhoneGap Build with OneSignal but it is not working. It shows only the first alert message.
Here is the code:
https://github.com/claudiosw/ZumitApp/
And you can download the app here:
https://build.phonegap.com/apps/2193000/builds
Also pasting the code here:
File config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.zumitapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>ZumitApp</name>
<description>Tenha Mais Resultados</description>
<author email="claudiosw#" href="http://zumitapp.com/App">Claudio Shigueo Watanabe</author>
<preference name="phonegap-version" value="cli-6.3.0" />
<feature name="http://api.phonegap.com/1.0/device" />
<preference name="orientation" value="portrait" /> <!-- all: default means both landscape and portrait are enabled -->
<gap:plugin name="org.apache.cordova.device" />
<gap:plugin name="org.apache.cordova.camera" />
<gap:plugin name="org.apache.cordova.media-capture" />
<gap:plugin name="org.apache.cordova.file" />
<gap:plugin name="org.apache.cordova.file-transfer" />
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.contacts" />
<gap:plugin name="org.apache.cordova.geolocation" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<gap:plugin name="org.apache.cordova.dialogs" />
<gap:plugin name="org.apache.cordova.vibration" />
<gap:plugin name="org.apache.cordova.network-information" />
<!--gap:plugin name="com.simplec.plugins.localnotification" /-->
<!--plugin name="com.onesignal.plugins.onesignal" spec="1.5.0" source="pgb" /-->
<!--plugin name="com.onesignal.plugins.onesignal" spec="1.9.0" source="pgb" /-->
<gap:plugin name="onesignal-cordova-plugin-pgb-compat" source="npm" />
<gap:plugin name="cordova-plugin-googleplayservices" source="npm" />
<gap:plugin name="cordova-plugin-android-support-v4" source="npm" />
<!--gap:plugin name="onesignal-cordova-plugin" source="npm" /-->
<!-- Recommend the newest cli but requires cli-5.1.1+ and gradle for Android. -->
<!-- If the below settings are not compatible with your project set the "PGB ANT" version above. -->
<!--preference name="android-build-tool" value="gradle" /-->
<icon src="icon.png" />
<icon src="res/icons/ios/Icon.png" gap:platform="ios" width="57" height="57" />
<icon src="res/icons/ios/Icon#2x.png" gap:platform="ios" width="114" height="114" />
<icon src="res/icons/ios/Icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="res/icons/ios/Icon-72#2x.png" gap:platform="ios" width="144" height="144" />
<icon src="res/icons/android/drawable-ldpi/Icon.png" gap:platform="android" gap:density="ldpi" />
<icon src="res/icons/android/drawable-mdpi/Icon.png" gap:platform="android" gap:density="mdpi" />
<icon src="res/icons/android/drawable-hdpi/Icon.png" gap:platform="android" gap:density="hdpi" />
<icon src="res/icons/android/drawable-xdpi/Icon.png" gap:platform="android" gap:density="xhdpi" />
<gap:splash src="ZumitApp_grande.jpg" />
<gap:splash src="res/screen/android/drawable-ldpi/splash.png" gap:platform="android" gap:density="ldpi" />
<gap:splash src="res/screen/android/drawable-mdpi/splash.png" gap:platform="android" gap:density="mdpi" />
<gap:splash src="res/screen/android/drawable-hdpi/splash.png" gap:platform="android" gap:density="hdpi" />
<gap:splash src="res/screen/android/drawable-xdpi/splash.png" gap:platform="android" gap:density="xhdpi" />
<gap:splash src="res/screen/ios/Default.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="res/screen/ios/Default#2x.png" gap:platform="ios" width="680" height="960" />
<gap:splash src="res/screen/ios/Deafult-568h-2x.png" gap:platform="ios" width="640" height="1136" />
<preference name="stay-in-webview" value="true" />
<content src="index.html" />
<access origin="*" subdomains="true" />
<allow-navigation href="*" />
</widget>
File index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZumitApp</title>
<script src="phonegap.js"></script>
<script src="jquery.min.js"></script>
<script>
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
// Now safe to use the Codova API
// Enable to debug issues.
alert("teste0");
window.plugins.OneSignal.setLogLevel({logLevel: 4, visualLevel: 4});
alert("teste1");
var notificationOpenedCallback = function(jsonData) {
console.log('didReceiveRemoteNotificationCallBack: ' + JSON.stringify(jsonData));
};
alert("teste2");
window.plugins.OneSignal.init("22a70849-091e-4eca-8b5b-e7fc5821f95b",
{googleProjectNumber: "428050097085"},
notificationOpenedCallback);
alert("teste3");
// Show an alert box if a notification comes in when the user is in your app.
window.plugins.OneSignal.enableInAppAlertNotification(true);
//alert("teste4");
window.location="http://zumitapp.com/App";
//alert("teste5");
}
</script>
</head>
<body>
<header class="bar bar-nav">
<h1 class="title">Boas-vindas ao ZumitApp</h1>
</header>
<h2>Aguarde. Carregando...</h2>
</body>
</html>
I have tried to debug but it didn't worked out. Maybe it is because my smartphone is old (LG-P705) or the desktop (Windows Vista).
Thanks you very much!

Wix installer - using the same property for reading from the registry and setting during the UI

I Have a (simple) wix project. In the project, I have a property which gets it's value from the registry (if such registry key exists).
On a dialog, the user sees the value of that property and then can change it.
For some reason, I cannot see that the property gets the value from the registry...
Will appreciate your help:
from the wix project:
<!-- The Registry group of the installation package. -->
<ComponentGroup Id="RegistryGroup">
<Component Id="_70B15100_F11D_48BF_8349_3E3B83157C54" Guid="2F344400-5C37-4CAE-902E-7100FDD2DB22" Transitive="no" Directory="TARGETDIR">
<RegistryKey Root="HKLM" Key="Software\[Manufacturer]\YYY" ForceCreateOnInstall="no" ForceDeleteOnUninstall="no">
<RegistryValue Type="string" Name="ServerPort" Value="[SERVERPORT]" />
<RegistryValue Type="string" Name="ServerAddress" Value="[SERVERADDRESS]" />
</RegistryKey>
</Component>
</ComponentGroup>
<!-- The composite feature of the installation package. -->
<Feature Id="CompleteInstall" Title="All Files" Level="1">
<ComponentGroupRef Id="FileSystemGroup" />
<ComponentGroupRef Id="RegistryGroup" />
</Feature>
<Upgrade Id="{D627BB25-59CB-4387-AF42-0127AC701DBE}">
<UpgradeVersion Minimum="3.11.7" Property="NEWPRODUCTFOUND" OnlyDetect="yes" IncludeMinimum="no" Language="1033" />
<UpgradeVersion Maximum="3.11.7" Property="OLDPRODUCTFOUND" OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="no" Language="1033" />
</Upgrade>
<InstallExecuteSequence>
<Custom Action="CA_CreateConfig" Sequence="1" />
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR = ""]]></Custom>
<Custom Action="PreventDowngrading" After="FindRelatedProducts"><![CDATA[NEWPRODUCTFOUND]]></Custom>
<Custom Action="_C976A2F6_5EC5_4EE5_898C_4A660FC42C9F.Commit.SetProperty" After="StartServices"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_C976A2F6_5EC5_4EE5_898C_4A660FC42C9F.Commit" After="_C976A2F6_5EC5_4EE5_898C_4A660FC42C9F.Commit.SetProperty"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_458FD9FC_2B2B_45E5_B89F_E5C67FA1AB86.Install.SetProperty" After="_C976A2F6_5EC5_4EE5_898C_4A660FC42C9F.Commit"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_458FD9FC_2B2B_45E5_B89F_E5C67FA1AB86.Install" After="_458FD9FC_2B2B_45E5_B89F_E5C67FA1AB86.Install.SetProperty"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_854AE351_70ED_4318_82B0_B079EDD6C3CD.Rollback.SetProperty" After="_458FD9FC_2B2B_45E5_B89F_E5C67FA1AB86.Install"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_854AE351_70ED_4318_82B0_B079EDD6C3CD.Rollback" After="_854AE351_70ED_4318_82B0_B079EDD6C3CD.Rollback.SetProperty"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769>2]]></Custom>
<Custom Action="_BEF9A9A6_06F8_43FA_85B9_F40521FCC587.Uninstall.SetProperty" After="MsiUnpublishAssemblies"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769=2]]></Custom>
<Custom Action="_BEF9A9A6_06F8_43FA_85B9_F40521FCC587.Uninstall" After="_BEF9A9A6_06F8_43FA_85B9_F40521FCC587.Uninstall.SetProperty"><![CDATA[(NOT DISABLESERVICE) AND $com_DCAB0809_69B4_442E_82E5_E600A7E1E769=2]]></Custom>
<RemoveExistingProducts Before="InstallInitialize" />
<Custom Action="CustomTextA_SetProperty_EDIT1" Sequence="701" />
<Custom Action="CustomTextA_SetProperty_EDIT2" Sequence="702" />
<Custom Action="CustomTextA_SetProperty_EDIT3" Sequence="703" />
<Custom Action="CustomTextA_SetProperty_EDIT4" Sequence="704" />
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="ERRCA_UIANDADVERTISED" Sequence="5"><![CDATA[ProductState=1]]></Custom>
<AppSearch Sequence="100" />
<FindRelatedProducts Sequence="200" />
<LaunchConditions Sequence="400"><![CDATA[NOT Installed]]></LaunchConditions>
<CCPSearch Sequence="500"><![CDATA[NOT Installed]]></CCPSearch>
<RMCCPSearch Sequence="600"><![CDATA[NOT Installed]]></RMCCPSearch>
<ValidateProductID Sequence="700" />
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR = ""]]></Custom>
<Custom Action="PreventDowngrading" After="FindRelatedProducts"><![CDATA[NEWPRODUCTFOUND]]></Custom>
<CostInitialize Sequence="800" />
<FileCost Sequence="900" />
<IsolateComponents Sequence="950"><![CDATA[RedirectedDllSupport]]></IsolateComponents>
<CostFinalize Sequence="1000" />
<ExecuteAction Sequence="1300" />
<Custom Action="CustomTextA_SetProperty_EDIT1" Sequence="701" />
<Custom Action="CustomTextA_SetProperty_EDIT2" Sequence="702" />
<Custom Action="CustomTextA_SetProperty_EDIT3" Sequence="703" />
<Custom Action="CustomTextA_SetProperty_EDIT4" Sequence="704" />
<Show Dialog="CustomTextA" Sequence="1001"><![CDATA[Installed="" AND NOT RESUME]]></Show>
<Show Dialog="ProgressForm" Sequence="1299" />
<Show Dialog="FatalErrorForm" OnExit="error"><![CDATA[NOT HideFatalErrorForm]]></Show>
<Show Dialog="UserExitForm" OnExit="cancel" />
<Show Dialog="FinishedForm" OnExit="success" />
<Custom Action="VSDCA_FolderForm_AllUsers" Sequence="997"><![CDATA[Installed="" AND NOT RESUME AND ALLUSERS=1]]></Custom>
<Show Dialog="ResumeForm" Sequence="998"><![CDATA[Installed="" AND RESUME]]></Show>
<Show Dialog="MaintenanceForm" Sequence="999"><![CDATA[Installed<>""]]></Show>
</InstallUISequence>
<AdminUISequence>
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR = ""]]></Custom>
<CostInitialize Sequence="800" />
<FileCost Sequence="900" />
<CostFinalize Sequence="1000" />
<ExecuteAction Sequence="1300" />
<Show Dialog="AdminWelcomeForm" Sequence="1001"><![CDATA[Installed="" AND NOT RESUME]]></Show>
<Show Dialog="AdminProgressForm" Sequence="1299" />
<Show Dialog="AdminFatalErrorForm" OnExit="error" />
<Show Dialog="AdminUserExitForm" OnExit="cancel" />
<Show Dialog="AdminFinishedForm" OnExit="success" />
<Show Dialog="AdminResumeForm" Sequence="998"><![CDATA[Installed="" AND RESUME]]></Show>
<Show Dialog="AdminMaintenanceForm" Sequence="999"><![CDATA[Installed<>""]]></Show>
</AdminUISequence>
<UI Id="Base">
<Error Id="1001">Error [1]. [2]</Error>
<Property Id="VSDNETURLMSG" Value="This setup requires the .NET Framework version [1]. Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?" />
<Property Id="VSDIISMSG" Value="This setup requires Internet Information Server 5.1 or higher and Windows XP or higher. This setup cannot be installed on Windows 2000. Please install Internet Information Server or a newer operating system and run this setup again." />
<Property Id="VSDUIANDADVERTISED" Value="This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic." />
<Property Id="VSDNETMSG" Value="This setup requires the .NET Framework version [1]. Please install the .NET Framework and run this setup again." />
<Property Id="VSDINVALIDURLMSG" Value="The specified path '[2]' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager." />
<Property Id="VSDVERSIONMSG" Value="Unable to install because a newer version of this product is already installed." />
</UI>
<CustomAction Id="CustomTextA_SetProperty_EDIT1" Property="SERVERADDRESS" Value="[SERVERADDRESS]" Execute="firstSequence" />
<CustomAction Id="CustomTextA_SetProperty_EDIT2" Property="SERVERPORT" Value="[SERVERPORT]" Execute="firstSequence" />
<CustomAction Id="CustomTextA_SetProperty_EDIT3" Property="EDITA3" Value="" Execute="firstSequence" />
<CustomAction Id="CustomTextA_SetProperty_EDIT4" Property="EDITA4" Value="" Execute="firstSequence" />
<CustomAction Id="VSDCA_FolderForm_AllUsers" Property="FolderForm_AllUsers" Value="ALL" />
<CustomAction Id="ERRCA_UIANDADVERTISED" Error="[VSDUIANDADVERTISED]" />
<Property Id="CustomTextA_NextArgs" Value="EulaForm" />
<Property Id="EulaForm_PrevArgs" Value="CustomTextA" />
<Property Id="EulaForm_NextArgs" Value="WelcomeForm" />
<Property Id="WelcomeForm_PrevArgs" Value="EulaForm" />
<Property Id="WelcomeForm_NextArgs" Value="ConfirmInstallForm" />
<Property Id="ConfirmInstallForm_PrevArgs" Value="WelcomeForm" />
<UI Id="CustomText1Dlg">
<Dialog Id="CustomTextA" X="50" Y="50" Width="373" Height="287" Title="[ProductName]">
<Control Id="NextButton" Type="PushButton" X="300" Y="261" Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}&Next >" TabSkip="no" Default="yes">
<Publish Event="EndDialog" Value="Return"><![CDATA[CustomTextA_NextArgs=""]]></Publish>
<Publish Event="NewDialog" Value="[CustomTextA_NextArgs]"><![CDATA[CustomTextA_NextArgs<>""]]></Publish>
</Control>
<Control Id="Label1" Type="Text" X="18" Y="108" Width="348" Height="12" Text="{\VSI_MS_Sans_Serif13.0_0_0}Server Address (leave empty for default)" TabSkip="no" />
<Control Id="Edit1" Type="Edit" X="18" Y="120" Width="348" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}" TabSkip="no" Property="SERVERADDRESS" Sunken="yes" />
<Control Id="Label2" Type="Text" X="18" Y="144" Width="348" Height="12" Text="{\VSI_MS_Sans_Serif13.0_0_0}Server Port (leave empty for default)" TabSkip="no" />
<Control Id="Edit2" Type="Edit" X="18" Y="156" Width="348" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}" TabSkip="no" Property="SERVERPORT" Sunken="yes" />
<Control Id="Label3" Type="Text" X="18" Y="180" Width="348" Height="12" Text="{\VSI_MS_Sans_Serif13.0_0_0}Edit3:" Hidden="yes" TabSkip="no" />
<Control Id="Edit3" Type="Edit" X="18" Y="192" Width="348" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}" TabSkip="no" Property="EDITA3" Hidden="yes" Sunken="yes" />
<Control Id="Label4" Type="Text" X="18" Y="216" Width="348" Height="12" Text="{\VSI_MS_Sans_Serif13.0_0_0}Edit4:" Hidden="yes" TabSkip="no" />
<Control Id="Edit4" Type="Edit" X="18" Y="228" Width="348" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}" TabSkip="no" Property="EDITA4" Hidden="yes" Sunken="yes" />
<Control Id="CancelButton" Type="PushButton" X="156" Y="261" Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}Cancel" TabSkip="no" Cancel="yes">
<Publish Event="SpawnDialog" Value="Cancel" />
</Control>
<Control Id="PreviousButton" Type="PushButton" X="228" Y="261" Width="66" Height="18" Text="{\VSI_MS_Sans_Serif13.0_0_0}< &Back" TabSkip="no">
<Condition Action="disable"><![CDATA[CustomTextA_PrevArgs=""]]></Condition>
<Condition Action="enable"><![CDATA[CustomTextA_PrevArgs<>""]]></Condition>
<Publish Event="NewDialog" Value="[CustomTextA_PrevArgs]"><![CDATA[CustomTextA_PrevArgs<>""]]></Publish>
</Control>
<Control Id="BannerBmp" Type="Bitmap" X="0" Y="0" Width="375" Height="52" Text="_bbb3a8b4c218495cb88ea30ee85d4499" TabSkip="no" Disabled="yes" />
<Control Id="BodyText" Type="Text" X="9" Y="63" Width="354" Height="42" Text="{\VSI_MS_Sans_Serif13.0_0_0}The installed agent will use the following connection properties." TabSkip="yes" NoPrefix="yes" />
<Control Id="BannerText" Type="Text" X="9" Y="9" Width="306" Height="33" Text="{\VSI_MS_Sans_Serif16.0_1_0}Specify Connection Details" TabSkip="yes" Transparent="yes" NoPrefix="yes" />
<Control Id="Control273" Type="Line" X="0" Y="252" Width="375" Height="6" Text="{\VSI_MS_Sans_Serif13.0_0_0}MsiHorizontalLine" TabSkip="yes" Disabled="yes" />
<Control Id="Control278" Type="Line" X="0" Y="52" Width="375" Height="6" Text="{\VSI_MS_Sans_Serif16.0_1_0}MsiHorizontalLine" TabSkip="yes" Disabled="yes" />
</Dialog>
</UI>
You say that you are getting the value of the property from the registry, but that requires a RegistrySearch element and there doesn't seem to be one in your WiX source.
My problem was that I used a tool that automatically converted my vdproj to a wix project. This conversion was not perfect and it created a custom action and a set property that I did not need. Once these were deleted, everything worked perfectly.

Can you transition using Fade specifying all elements, without listing individually?

I've got the beginning of an air app, and I'm trying to transition between the states using Fade (a Sequence that should, in theory, fade out, then fade the next state in.) Is there a way to target it to fade out ALL the elements, or will I need to use targets="..." and list every element?
I've tried nesting all the elements in a Group, but that isn't seeming to work.
Shortened version of my current code:
<s:states>
<s:State name="HomeScreen"/>
<s:State name="EnemyBuilder"/>
<s:State name="EncyclopediaBuilder"/>
</s:states>
<fx:Declarations>
<s:Transition toState="*" fromState="*" >
<s:Sequence >
<s:Fade alphaFrom="1" alphaTo="0" duration="250" target="{wrapper}" />
<s:Fade alphaFrom="0" alphaTo="1" duration="250" target="{wrapper}" />
</s:Sequence>
</s:Transition>
</fx:Declarations>
<s:Group id="wrapper" includeIn="HomeScreen, EnemyBuilder, EncyclopediaBuilder" >
<s:BorderContainer id="encounter" includeIn="HomeScreen"
x="49" y="99" width="200" height="44"
styleName="falseButton"
rollOut="alphaOver(event)" rollOver="alphaOver(event)" click="currentState='EncyclopediaBuilder'" >
<s:Label x="48" y="8" color="#000000" fontFamily="Arial" text="Create a new encounter" />
<s:Label x="48" y="24" color="#000000" fontStyle="italic" text="Single encounter" />
<s:Image x="10" y="10" source="assets/001_01.png" />
<s:BorderContainer id="back" includeIn="EncyclopediaBuilder"
right="20" bottom="20" width="200" height="44"
styleName="falseButton"
rollOut="alphaOver(event)" rollOver="alphaOver(event)"
click="currentState='HomeScreen'" >
<s:Label x="48" y="16" color="#000000" fontFamily="Arial" text="Save and Return"/>
<s:Image x="10" y="10" source="assets/001_01.png"/>
</s:BorderContainer>
</s:BorderContainer></s:Group>
Try to use something like the following:
<s:states>
<s:State name="HomeScreen"/>
<s:State name="EnemyBuilder"/>
<s:State name="EncyclopediaBuilder"/>
</s:states>
<s:transitions>
<s:Transition toState="*" fromState="*" >
<s:Sequence target="{wrapper}">
<s:Fade alphaFrom="1" alphaTo="0" duration="250" />
<s:Fade alphaFrom="0" alphaTo="1" duration="250" />
</s:Sequence>
</s:Transition>
</s:transitions>
<s:Group id="wrapper">
<s:BorderContainer id="encounter" includeIn="HomeScreen"
x="49" y="99" width="200" height="44"
styleName="falseButton"
rollOut="alphaOver(event)" rollOver="alphaOver(event)" click="currentState='EncyclopediaBuilder'" >
<s:Label x="48" y="8" color="#000000" fontFamily="Arial" text="Create a new encounter" />
<s:Label x="48" y="24" color="#000000" fontStyle="italic" text="Single encounter" />
<s:Image x="10" y="10" source="assets/001_01.png" />
<s:BorderContainer id="back" includeIn="EncyclopediaBuilder"
right="20" bottom="20" width="200" height="44"
styleName="falseButton"
rollOut="alphaOver(event)" rollOver="alphaOver(event)"
click="currentState='HomeScreen'" >
<s:Label x="48" y="16" color="#000000" fontFamily="Arial" text="Save and Return"/>
<s:Image x="10" y="10" source="assets/001_01.png"/>
</s:BorderContainer>
</s:BorderContainer></s:Group>

Resources