// Prepare the input parameters of the process
Map<String, Object> inputParams = new HashMap<String, Object>();
inputParams.put("InputValue", STARTVALUE);
// Create the process context and start the process
TokenContext token = createToken();
token.createProcessVariable("ExternalValue", true);
token.setProcessVariableValue("ExternalValue", EXTVALUE);
getProcessFacade().startToken(token, STARTREF, inputParams);
// Note: This should be done by some worker thread; for the test case, we do it right here.
getProcessFacade().executePendingContextsInThisThread();