Histórico da Página
...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | function afterTaskComplete(colleagueId, nextSequenceId, userList) { if (nextSequenceId == 2) { //Busca o webservices de Colaborador //Servico "<url_fluig>/webdesk/ECMColleagueService?wsdl" cadastrado com o código "Colleague" var colleagueServiceProvider = ServiceManager.getServiceInstance( "Colleague" ); var colleagueServiceLocator = colleagueServiceProvider.instantiate( "com.totvs.technology.ecm.foundation.ws.ECMColleagueServiceService" ); var colleagueService = colleagueServiceLocator.getColleagueServicePort(); //Cria o ColleagueDto – Verificar a lista de métodos na visualização do serviço var colleagueDto = colleagueServiceProvider.instantiate( "com.totvs.technology.ecm.foundation.ws.ColleagueDto" ); colleagueDto.setCompanyId(1); colleagueDto.setColleagueId( "teste" ); colleagueDto.setColleagueName( "Usuario Teste" ); colleagueDto.setActive( true ); colleagueDto.setVolumeId( "Default" ); colleagueDto.setLogin( "teste" ); colleagueDto.setPasswd( "teste" ); colleagueDto.setAdminUser( false ); colleagueDto.setEmailHtml( true ); colleagueDto.setDialectId( "pt_BR" ); //Cria o colleagueDtoArray e adiciona var colleagueDtoArray = colleagueServiceProvider.instantiate( "com.totvs.technology.ecm.foundation.ws.ColleagueDtoArray" ); colleagueDtoArray.getItem().add(colleagueDto); var result = colleagueService.createColleague( "adm" , "adm" , 1, colleagueDtoArray); } } |
Abaixo um outro exemplo utilizando o WebService ECMCardService para alterar o valor do campo de um registro de formulário após a entrada em uma nova atividade:
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas