if (this.workflowSchedulingContext == null) {
this.workflowSchedulingContext = WorkflowSchedulingContextDocument.WorkflowSchedulingContext.Factory
.newInstance();
}
NameValuePairType nameValuePair = workflowSchedulingContext.addNewNameValuePair();
if(workflowNodeId != null){
nameValuePair.setWorkflowNodeId(workflowNodeId);
}
if(name != null && value != null){
nameValuePair.setName(name);
nameValuePair.setValue(value);
}
if(description != null){
nameValuePair.setDescription(description);
}
return this;
}