/**
* @param fileName
* @return
*/
public static BPMServiceClientFactory getServiceClientFactory(String fileName) {
WorkflowServicesClientConfigurationType cfg = ClientConfigurationUtil.getClientConfiguration(fileName, null);
if(cfg == null) {
throw new RuntimeException("workflow client configuration file not found:"+fileName);
}
cfg.setClientType("REMOTE");
return BPMServiceClientFactory.getInstance(cfg, null);
}