You're not binding the variable to Method1::Result
OutArgument<string>
or the Method2::Text
InArgument<string>
. Try this setup instead:
var v = new Variable<string>
{
Name = "TestParam",
Default = "Hello"
};
var s = new Sequence()
{
DisplayName = "Sequence1",
Variables =
{
v
},
Activities =
{
new Method1() { Text = "Test1234", Result = new OutArgument<string>(v)},
new Method2() { Text = new InArgument<string>(v) }
}
};