Skip to content

Commit

Permalink
for single flow property flows only make the property requested as be…
Browse files Browse the repository at this point in the history
…ing required
  • Loading branch information
patmoore committed May 23, 2012
1 parent 484cbdf commit 9c4f478
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -81,7 +81,8 @@ public void add(FlowPropertyDefinitionProvider... flowPropertyDefinitionProvider
FlowImpl flow = new FlowImpl(capitalizedFlowPropertyName+"Flow");
flow.addPropertyDefinition(new FlowPropertyDefinitionImpl(FlowConstants.FSSINGLE_PROPERTY_NAME).initAccess(flowLocal, internalState).initDefaultObject(flowPropertyName));
FlowActivityImpl flowActivity = new FlowActivityImpl("FA");
flowPropertyDefinitionProvider.defineFlowPropertyDefinitions(flowActivity, Arrays.<FlowPropertyExpectation>asList(new FlowPropertyExpectationImpl(FlowActivityPhase.finish)));
// make sure the property being returned has a value set.
flowPropertyDefinitionProvider.defineFlowPropertyDefinitions(flowActivity, Arrays.<FlowPropertyExpectation>asList(new FlowPropertyExpectationImpl(flowPropertyName, FlowActivityPhase.finish, null, null, null)));
flow.addActivity(flowActivity);
put(this.flows, flow.getFlowPropertyProviderFullName(), flow);
}
Expand Down

0 comments on commit 9c4f478

Please sign in to comment.