Время создания
Filters
Parallel
execution
Financial_Services_Creatio_lending_edition
8.0

Hi everyone,

I am currently working on creating a custom service in Creatio, where I need to execute a large number of tasks and create records in multiple objects. These tasks take some time to execute, and to avoid any latency, I would like to execute these tasks in parallel, as some are independent from one another.  

Does Creatio offer a customized implementation for parallelism (I saw that it had its own implementation of background execution)?

How can I implement this approach for parallel execution of tasks in Creatio and how can I handle the user connection and the context data in these methods?

Thanks in advance for your help!

Like 0

Like

0 comments
Show all comments
Studio_Creatio

Hi;
I read an element from Preconfigured.Page on script task

The default value of this element is take from reading Task
when reading task return an empty entity in one environment it return empty string in other the addres to reading element

Like 0

Like

1 comments

Hi!

Could you please advise how we can assist with this request?

Show all comments
Copilot
configuration
Studio_Creatio
8.0

Hello,

I have contacted customer support to enable the AI on my local deployment. I have made all the changes as mentioned by the support.
 

I have enabled co-pilot features.

I have set the system settings - IdentityServerUrl, DefaultExternalAccessClientId, IdentityServerClientSecret, IdentityServerClientId, AccountEnrichmentServiceUrl with respective values..

But when I am trying to use the AI seeing below error in the network tab:
 

errorCode: "IncorrectConfiguration"

errorMessage: "IdentityServer auth failed with [BadRequest] invalid_client\n" 

Something is wrong in the configuration but not sure what's wrong.. Can anyone help debug and fix the issue.. TIA

Note: I have already reported this issue with support, not heard anything yet. As this is a blocker for me so posting it here in hope to get a solution.

Like 1

Like

4 comments

Hello Sagar!

Thank you for your post! We are already working on your case, which has been reported to our support team, and we will continue our communication in that case.

Have a great day!

Is there official documentation on the steps need to activate on-premise Creatio AI ?

Damien Collot,

No, we need to contact the customer support.

😕

Show all comments
Financial_Services_Creatio_lending_edition
8.0
background
execution
Parallel

Hello,

I am creating a service that calls a number of actions. It passes to the methods the required parameters and a userConnection. I pass the UserConnection to the service class using dependency injection:
 

public class MonitoringService : IMonitoringService
   {
       private UserConnection _userConnection;
 
 
       public MonitoringService(UserConnection userConnection)
       {
           _userConnection = userConnection;         
       }
// the rest of the code here
 
}
 

this service is run in the background declaring an implementation of creatio's IBackgroundTask and  IUserConnectionRequired interfaces. 

The actions are executed in parallel, as shown in the code below:

 public void ExecuteStepsAsync(
    Dictionary<Guid, BlockStepExecution> allSteps,
    BlockExecution blockExecution,
    Guid applicationId,
    Guid appFormId,
    IAppProduct product = null,
    DateTime? requestStartTime = null)
{
    var processors = Environment.ProcessorCount;
    var steps = blockExecution.Steps;
    var workQueue = new Queue<BlockStepExecution>(
        steps.Values.Where(step => step.IsReady(allSteps)).ToList()
        );
 
    while (workQueue.Count > 0)
    {
        var currentBatch = DequeueBatch(workQueue);
        var newSteps = new ConcurrentQueue<BlockStepExecution>();
 
        Parallel.ForEach(currentBatch, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, step =>
        {
            StartStepExecution(step, requestStartTime);
 
            try
            {
                Execute(step, applicationId, appFormId, product);
                step.Complete();
            }
            catch (Exception ex)
            {
                step.Fail($"FAILED: {ex.Message}");
            }
 
            StepExecutionFinished(step);
 
            var followUp = step.GetConditionalFollowUp(steps.Values);
            if (followUp != null)
                newSteps.Enqueue(followUp);
        });
 
        foreach (var next in steps.Values.Where(s => s.IsReady(allSteps)))
            workQueue.Enqueue(next);
 
        while (newSteps.TryDequeue(out var child))
            workQueue.Enqueue(child);
        //if (!workQueue.Contains(child))
    }
}

 

and the method for action execution:

       

public void Execute(BlockStepExecution step, Guid applicationId, Guid appFormId, IAppProduct product)
       {
           if (step.ShouldSkipStep())
           {
               Logger.Info($"Step '{step.FZName}' skipped (ends with '-001').");
               return;
           }
           var action = _methodRegistry.GetAction(step.FZName);
           if (action == null)
               throw new NotImplementedException($"Step not implemented: {step.FZName}");
 
           action(applicationId, appFormId, product, _userConnection);            
       }

 

Some of the actions that are executed in parallel, call business processes. 

In some executions of the business processes I have encountered 2 errors:
 

and 

I think the problem is related to a connection that should be closed but is not and is reused in the next processes.

What could be the cause for these errors and how can I fix this issue?

Thank you in advance!

Like 0

Like

0 comments
Show all comments
local
Studio_Creatio
8.0

Hello, 

I am trying to expose my local creatio instance to public network using a domain. I did all the steps mentioned here - https://academy.creatio.com/docs/8.x/setup-and-administration/on-site-deployment/application-server-on-windows/switch-creatio-website-from-http-to-https

So that I can use Creatio AI locally.

I got a domain and certs(using letsencrypt). 

But the login is not working locally. I can provide more information for debugging.

I am not able to access the app through domain as well.

Like 0

Like

1 comments

Hello!

Usually, this situation occurs when the configuration files -  Web.config have been modified, but the certificate is either invalid or not fully installed.
Please check:

  1. The certificate parameters to ensure it is valid.
  2. The certificate settings on the web server.

 

Show all comments