Estou usando startProcess para fazer solicitações automáticas usando o webservice, ele chegou a criar algumas mas parou. Esta dando o seguinte erro: sun.org.mozilla.javascript.internal.WrappedException: Wrapped javax.xml.ws.WebServiceException: Could not send Message. (#162) in at line number 162
alguém ja passou por isso?
Segue o código abaixo:
var rmService = ServiceManager.getService('ECMWorkflowEngineService');
var serviceHelper = rmService.getBean();
var serviceLocator = serviceHelper.instantiate('com.totvs.technology.ecm.workflow.ws.ECMWorkflowEngineServiceService');
var service = serviceLocator.getWorkflowEngineServicePort();
var colleagueId = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
colleagueId.getItem().add(new java.lang.String(matricula));
var attachments = serviceHelper.instantiate('com.totvs.technology.ecm.workflow.ws.ProcessAttachmentDtoArray');
var cardData = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArrayArray');
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("disciplina"));
campo.getItem().add(new java.lang.String(disciplina));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("hdi_disciplina"));
campo.getItem().add(new java.lang.String(coddisciplina));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("curso"));
campo.getItem().add(new java.lang.String(curso));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("hdi_curso"));
campo.getItem().add(new java.lang.String(codcurso));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("status"));
campo.getItem().add(new java.lang.String(statusInicial));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("codprofessor_logado"));
campo.getItem().add(new java.lang.String(codProfessor));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("professor_logado"));
campo.getItem().add(new java.lang.String(matricula));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("docente_responsavel"));
campo.getItem().add(new java.lang.String(nomeprofessor));
cardData.getItem().add(campo);
var campo = serviceHelper.instantiate('net.java.dev.jaxb.array.StringArray');
campo.getItem().add(new java.lang.String("hdi_co"));
campo.getItem().add(new java.lang.String(cpfcoordenador));
cardData.getItem().add(campo);
var appointment = serviceHelper.instantiate('com.totvs.technology.ecm.workflow.ws.ProcessTaskAppointmentDtoArray');
log.info("retorno startProcess")
log.dir(colleagueId);
var result = service.startProcess("login",
"senha",
1,
"plano_ensino",
0,
colleagueId,
"Solicitação iniciada automaticamente pela secretária",
matricula,
false,
attachments,
cardData,
appointment,
false);
log.info("retorno2 startProcess")
log.dir(result);
return result.toString();
Bom dia Laisa, pode passar a function inteira por favor.
— Danilo Mariano 04 de Aug de 2020