Pesquise respostas existentes para suas dúvidas sobre produtos e suporte.
Familiarize-se com nosso site de suporte e conheça as melhores práticas para trabalhar com nossa equipe.
Gerencie Solicitações de Serviço; visualize e atualize solicitações de serviço enviadas por você e por outras pessoas da sua organização.
Envie um novo problema para nossa equipe de suporte técnico.
Informações sobre o Oracle B2C Service fornecidas por especialistas da nossa equipe de Suporte Técnico.
Explore recursos para ajudar você a lançar sua implementação e garantir uma entrada em produção bem-sucedida.
Acesse sua conta OCI.
Encontre a documentação do produto para versões compatíveis do B2C e bibliotecas de documentação para soluções de serviço relacionadas.
Você terá as ferramentas para melhorar a experiência dos seus clientes ao conhecer tudo o que nossos produtos podem fazer.
Encontre links para documentação de API, Processos Personalizados, Portal do Cliente e Framework de Extensibilidade da Interface de Usuário do Navegador do Agente.
Explore como os aceleradores são projetados para demonstrar como um cenário de integração pode ser criado usando os recursos públicos de integração e extensão do Oracle B2C Service.
Prepare-se para uma transição bem-sucedida revisando as alterações e melhorias das próximas versões.
Explore webinars, eventos e kits de recursos para conhecer os recursos, funcionalidades e melhores práticas do B2C Service com especialistas técnicos.
O Oracle MyLearn oferece um portfólio de recursos de aprendizagem gratuitos e pagos, baseados em assinatura, para ajudar você a adquirir habilidades valiosas, acelerar a adoção da nuvem, aumentar a produtividade e transformar seus negócios.
Capacite sua equipe com as habilidades necessárias para implementar, configurar, gerenciar e usar seus aplicativos com o treinamento do Customer Experience Cloud.
Nosso objetivo é promover um ambiente amigável e colaborativo, no qual os membros possam colaborar facilmente entre si em soluções e melhores práticas.
Faça e responda perguntas específicas sobre B2C.
Este é um recurso interessante criado para ajudar com o Oracle Service Cloud Analytics.
Compartilhe ideias de melhoria de produto e solicitações de aprimoramento com o Desenvolvimento da Oracle, enquanto colabora com outros clientes e parceiros da Oracle.
Atualize seu número de telefone, preferências de notificação por e-mail e preferências de contato para severidade 1 e severidade 2.
Visualize os gerentes de contato da sua organização.
Encontre as informações de contato do Technical Account Manager (TAM) e do Client Success Manager (CSM) da sua organização.
Environment:
Process Designer, Custom Processes (CPM)All product versions
Resolution:
Click here to view product documentation on 'Best Practices: Testing Object Event Handler Scripts'. The following can be helpful in addition to the information provided in the product feature documentation.
The following best practices and guidelines are important to understand when creating and testing object event handler scripts:
Ensure that any asynchronous CPM scripts using PHP curl have set the curl timeout to a value smaller than the maximum runtime for a CPM custom process script (157 seconds). A value of five seconds or under is highly recommended, as any external call through a CPM can cause queue delays in processing of the queue. There is a maximum of three asynchronous CPM processes running at a time, and if any of them are waiting on the response from an integration call this is going to reduce the speed that the queue is able to process. A value of 155 seconds is the maximum that should be used. The following is an example:
curl_setopt($curl, CURLOPT_TIMEOUT, 5);
For further details see Answer ID 11903: Coding for PHP curl call timeouts and re-tries in CPM customiizations
The utility that processes asynchronous CPMs may already have PHP curl loaded from a previous CPM run in the process. For this reason, we need to ensure that the following check is performed before loading the libraries, to prevent any code failures:
if(!extension_loaded('curl')) { load_curl(); }
For further details see Answer ID 10789: Use of load_curl() function in multiple scripts
PHP file_get_contents is not allowed in CPM customizations. Use PHP curl instead.
A database commit is run automatically after CPMs have processed. Add API commit statements to the code only when necessary, or if it will be somehow useful to troubleshoot a problem, as API commit statements in CPM code adds overhead to processing and can make troubleshooting at a deeper level (using server trace files when appropriate, for example) much more complex. API commit statements can be useful when using PHP curl, however, and for further details see Answer ID 11387: Commit before making cURL calls in a Customer Portal CPHP customization
Excessive API save statements on the same object should be avoided, as each save can trigger CPMs and business rules (depending on the particular implementation). Extra saves add unnecessary processing overhead and result in added complexity when troubleshooting problems that may come up. Save the object after modifications have been applied, and before the CPM code completes.
Do not destroy the object that triggered a CPM within the CPM code itself, as this is considered an invalid use case and will cause unexpected problems.
For file-based logging, close resource handles promptly. This is particularly important if an asynchronous CPM customization is logging between save and commit operations. If the CPM were to be triggered concurrently for the same object, this could cause resource contention as one thread waits for the database lock and the other waits for the file handle.
Keep the following points in mind when testing an object event handler script before deployment:
The test harness code will be run for each action defined in the comments/"flower basket" section of the script.
Tests from the Process Designer will not commit any changes to the database. Rather, all objects created and/or updated during a test are rolled back automatically when the test is complete.
For further information refer to Answer ID 5169: Technical Documentation and Sample Code
Answer ID 6604: There are two types of execution for Object Event Handlers
Answer ID 11934: Alternatives to using CPM customizations for event-driven functionality that needs to happen immediately