-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from SainsburyWellcomeCentre/environment-dev
Add environment condition operator
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<WorkflowBuilder Version="2.8.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core" | ||
xmlns:aeon="clr-namespace:Aeon.Environment;assembly=Aeon.Environment" | ||
xmlns="https://bonsai-rx.org/2018/workflow"> | ||
<Workflow> | ||
<Nodes> | ||
<Expression xsi:type="WorkflowInput"> | ||
<Name>Source1</Name> | ||
</Expression> | ||
<Expression xsi:type="ExternalizedMapping"> | ||
<Property Name="Value" /> | ||
</Expression> | ||
<Expression xsi:type="rx:Condition"> | ||
<Name>EnvironmentCondition</Name> | ||
<Workflow> | ||
<Nodes> | ||
<Expression xsi:type="SubscribeSubject"> | ||
<Name>EnvironmentState</Name> | ||
</Expression> | ||
<Expression xsi:type="MemberSelector"> | ||
<Selector>Value.Type</Selector> | ||
</Expression> | ||
<Expression xsi:type="ExternalizedMapping"> | ||
<Property Name="Value" /> | ||
</Expression> | ||
<Expression xsi:type="Equal"> | ||
<Operand xsi:type="WorkflowProperty" TypeArguments="aeon:EnvironmentStateType"> | ||
<Value>Experiment</Value> | ||
</Operand> | ||
</Expression> | ||
<Expression xsi:type="WorkflowOutput" /> | ||
</Nodes> | ||
<Edges> | ||
<Edge From="0" To="1" Label="Source1" /> | ||
<Edge From="1" To="3" Label="Source1" /> | ||
<Edge From="2" To="3" Label="Source2" /> | ||
<Edge From="3" To="4" Label="Source1" /> | ||
</Edges> | ||
</Workflow> | ||
</Expression> | ||
<Expression xsi:type="WorkflowOutput" /> | ||
</Nodes> | ||
<Edges> | ||
<Edge From="0" To="2" Label="Source1" /> | ||
<Edge From="1" To="2" Label="Source2" /> | ||
<Edge From="2" To="3" Label="Source1" /> | ||
</Edges> | ||
</Workflow> | ||
</WorkflowBuilder> |