* @param inputParamValues A map of parameter name/parameter value pairs that will be assigned to the
* parameters of the target socket or null
*/
public void setInitialPosition(TokenContext context, String startRef, Map inputParamValues)
{
NodeSocket startSocket = getEngine().resolveSocketRef(startRef, context.getCurrentSocket(), context, true);
InitialNode initialNode = (InitialNode) startSocket.getNode();
if (initialNode.getEntryScope() != InitialNode.SCOPE_PUBLIC)
{
String msg = LogUtil.error(getClass(), "Node $0 is not a public initial node (start node reference: $1). [{2}]", initialNode.getQualifier(), startRef, context);
throw new ModelException("NoPublicInitialNode", msg);
}
context.setCurrentSocket(startSocket);
if (context.getExecutingModel() == null)
{
context.setExecutingModel(startSocket.getProcess().getModel());
}
bindInputParameters(context, startSocket, inputParamValues);
}