...
Bloco de código | ||||
---|---|---|---|---|
| ||||
;------------------------------------------------------------------------------ ;Para cada empresa é necessário haver uma configuração específica de ambiente ;------------------------------------------------------------------------------ [PROCUCAO_EMP01] SourcePath=C:\Protheus\PROCUCAO_EMP01\apo RootPath=C:\Protheus\PROCUCAO_EMP01\protheus_data StartPath=\system\ #Informações utilizadas para identificar a CodigoEmpresa e filial pelos jobs EMPROBOXML=CodigoEmpresa FILROBOXML=CodigoFilial JEMP=CodigoEmpresa JFIL=CodigoFilial ... [ONSTART] JOBS=HTTPJOB,HTTPREST,JOB_PP,IMPXML,XML_ROBOT,PJobHatXML,PLSYNCAUTH,PLSYNCLIAT,PLSYNCTREX,PLSHAT, Refreshrate=120 ;-------------------------------- ;------------- REST ------------- ;-------------------------------- [HTTPJOB] MAIN=HTTP_START ENVIRONMENT=PROCUCAO_EMP01 [HTTPV11] Enable=1 Sockets=HTTPREST [HTTPREST] Port=Porta IPsBind=Endereco URIs=URIHTML SECURITY=0 MaxQueue=10 SSL2=0 SSL3=0 TLS1=0 BUGS=0 State=0 Verbose=0 HSM=0 Module= Certificate= Certificate2= Key= Key2= PassPhrase= [URIHTML] URL=/rest PrepareIn=CodigoEmpresa,CodigoFilial Instances=1,15 AllowOrigin=* CORSEnable=1 ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ JOBS INTEGRACAO HAT $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ #Job responsavel por realizar a importação dos XML's para o Protheus [IMPXML] Enviroment=PROCUCAO_EMP01 Main=XmlImport ;Job responsavel por processar os XML's baixados [XML_ROBOT] ENVIRONMENT=PROCUCAO_EMP01 main=xmlroute #Job responsavel por verificar se existem arquivos XML para baixar e realizar o download [PJobHatXML] ENVIRONMENT=PROCUCAO_EMP01 INSTANCES=1,1 main=PJobHatXML #Job responsavel por integrar as guias de autorização e as guias canceladas [PLSYNCAUTH] ENVIRONMENT=PROCUCAO_EMP01 MAIN=PLSYNCAUTH INSTANCES=1,1 #Job responsavel por integrar as guias de anexos clinicos e as guias de anexos canceladas [PLSYNCLIAT] ENVIRONMENT=PROCUCAO_EMP01 MAIN=PLSYNCLIAT INSTANCES=1,1 #Job responsavel por integrar as guias de prorrogação de internação e as prorrogações canceladas [PLSYNCTREX] ENVIRONMENT=PROCUCAO_EMP01 MAIN=PLSYNCTREX INSTANCES=1,1 #Job resposavel por realizar a integração de dados [PJobPlsHat] main=PJobPlsHat ENVIRONMENT=PROCUCAO_EMP01 INSTANCES=1,1 [FWSCHDMANAG] Main=FWSCHDMANAG Environment=PROCUCAO_EMP01 [FWSCHDQUEUE] Main=FWSCHDQUEUE Environment=PROCUCAO_EMP01 ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;$$$$$$$$$$$$$$$$$$$$$$ FIM DA CONFIGURACAO DAS JOBS DE INTEGRACAO HAT $$$$$$$$$$$$$$$$$$$$$$$ ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;-------------------------------- ;--------- Web Service ---------- ;-------------------------------- [http] enable=1 path=E:\protheus\ENVIRONMENTPROCUCAO_EMP01\Protheus_data port=Porta INSTANCES=1,10 ENVIRONMENT=PROCUCAO_EMP01 SESSIONTIMEOUT=TempoDeTimeout SECURITY=0 [Endereco:Porta] ENABLE=1 PATH=E:\protheus\ENVIRONMENTPROCUCAO_EMP01\Protheus_data\Web\PP ENVIRONMENT=PROCUCAO_EMP01 INSTANCENAME=pp RESPONSEJOB=JOB_PP JEMP=CodigoEmpresa JFIL=CodigoFilial UPLOADPATH=E:\protheus\ENVIRONMENTPROCUCAO_EMP01\Protheus_data\TISS\upload TPACESSO=1 INSTANCES=1,5,1,1 [JOB_PP] TYPE=WEBEX ENVIRONMENT=PROCUCAO_EMP01 INSTANCES=1,5,1,1 PREPAREIN=CodigoEmpresa,CodigoFilial SIGAWEB=PP INSTANCENAME=PP ONSTART=STARTWEBEX ONCONNECT=CONNECTWEBEX ONEXIT=FINISHWEBEX WEBSERVICELOCATION=http://Endereco:Porta/ws [Endereco:Porta/ws] ENABLE=1 PATH=E:\protheus\PROCUCAO_EMP01\Protheus_data\Web\Ws ENVIRONMENT=PROCUCAO_EMP01 INSTANCENAME=ws RESPONSEJOB=JOB_WS DEFAULTPAGE=wsindex.apw ;;SESSIONTIMEOUT=30 [JOB_WS] TYPE=WEBEX ENVIRONMENT=PROCUCAO_EMP01 INSTANCES=1,10 SIGAWEB=WS INSTANCENAME=ws ONSTART=__WSSTART ONCONNECT=__WSCONNECT PREPAREIN=CodigoEmpresa,CodigoFilial [HTTPV11] Enable=1 Sockets=HTTPREST TimeOut=120 [HTTPREST] Port=Porta IPsBind=Endereco MaxQueue=10 URIs=HTTPURI SSL2=0 SSL3=0 TLS1=0 BUGS=0 State=0 Verbose=0 HSM=0 Module= Certificate= Certificate2= Key= Key2= PassPhrase= [HTTPURI] URL=\rest PrepareIn= OnStart= OnConnect= OnExit= Instances= |
Obs.: também deve ser adicionada a chave PREPAREIN=CodigoEmpresa,CodigoFilial na sessão que é chamada na chave URIs do [HTTPURI], no APPSERVER.ini. Para mais informações: Configuração do REST Protheus para uso com os aplicativos Mobile.
...