Business Process
7.15
Studio_Creatio

Hi;

We run the process like that

            ProcessSchema schema = userConnection.ProcessSchemaManager.GetInstanceByName("UsrSendExtraPaymentCancellationToNav");

            bool canUseFlowEngine = ProcessSchemaManager.GetCanUseFlowEngine(userConnection, schema);

            if (canUseFlowEngine)

            {

                var flowEngine = new FlowEngine(userConnection);

                var param = new Dictionary();

                param["Quotation"] = quotationId.ToString();

                flowEngine.RunProcess(schema, param);

            }

            else

            {

                Process process = schema.CreateProcess(userConnection);

                process.SetPropertyValue("Quotation", quotationId);

                process.Execute(userConnection);

            }

and from time to time error occurs:

Terrasoft.Common.ItemNotFoundException: Collection item with unique identifier "24240d57-78ed-41ad-8877-22acad56de30" not found.     at Terrasoft.Core.Process.Process.GetFlowElementBySchemaElementUId(Guid schemaElementUId)     at Terrasoft.Core.Process.TaskService.WriteErrorToProcessLog(TaskServiceQueueItem queueItem, ProcessComponentSet process)     at Terrasoft.Core.Process.TaskService.ReceiveMessage(TaskServiceQueueItem taskServiceQueueItem)     at Terrasoft.Core.Process.QueueEmulator.b__8_0(TaskServiceQueueItem message)     at Terrasoft.Core.Process.FlowVisitor.Dequeue()     at Terrasoft.Core.Process.FlowService.StartFlow(Guid processUId, FlowSchema flowSchema)     at Terrasoft.Core.Process.FlowService.StartFlow(TaskServiceQueueItem message)     at Terrasoft.Core.Process.FlowService.ReceiveMessage(TaskServiceQueueItem message)     at Terrasoft.Core.Process.QueueEmulator.b__9_0(TaskServiceQueueItem message)     at Terrasoft.Core.Process.FlowEngine.EnqueueProcess(ProcessComponentSet processComponentSet)     at Terrasoft.Core.Process.FlowEngine.RunProcess(BaseProcessSchema schema, Dictionary`2 nameValueMap)     at Terrasoft.Configuration.ClaimQuotationDAO.CancelExtraPaymentNAV(Guid quotationId)     at Terrasoft.Configuration.ClaimQuotationDAO.ChangeStatusAndStatusReasonForAllClaimQuotation(String claimNumber, Guid statusId, Guid statusReasonId)     at Terrasoft.Configuration.QuotationService.ChangeQuotationStatus(String claimNumber, Guid statusId, Guid statusReasonId)     at Terrasoft.Core.Process.UsrCloseClaimLiquidationAfterReturnBenefitMethodsWrapper.UsrRejectedAllClaimQuotationsExecute(ProcessExecutingContext context)     at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)



Where identifier id id of startEvent



any idea?



Regards

Tomek

Like 0

Like

1 comments

Dear Tomasz,

 

Unfortunately, I could not reproduce the issue. The provided code worked fine on my end. However, I can suggest two ways of how to resolve this issue:

1. If the issue occurs again please contact technical support and provide them with the time stamp when the issue occurred. Support team will check the logs and will find the root cause of the issue.

 

2. You can try to run business process using another approaches. Please find the examples in the articles by the links below:

 

https://community.creatio.com/articles/run-business-process-server-side

 

https://academy.creatio.com/documents/technic-sdk/7-16/how-run-creatio-processes-web-service

 

Best regards,

Norton

Show all comments
offline
network
connectivity
7.15
Studio_Creatio

Hello Community!



While we are aware that the Creatio web application is primarily an 'online' application and does not support offline usage, Will a loaded page stay as is, if network disconnects for a few minutes? I did a quick check on a pre configured page and it stayed as is. I was able to resume operations once I reconnected. Can this be extended to a pattern for sections and other pages?

 

On a larger front, (How) Does the platform handle network outages or momentary connectivity issues on the client and on the server? For Eg If a Business process was running on the web server and there is a network outage, What happens? Automatic retry/fail over?

 

I have seen that the platform uses WebSockets behind the hood for Client Server communication. Wouldn't these be directly affected? Some insight into how the platform looks at all of the above, will help!



Regards

Shrikanth

Like 0

Like

2 comments
Best reply

    Hello!

 

    Yes, the loaded page won't crash until you try to refresh it.

When you have some page or the list of records opened and the network connection goes down - you'll be able to continue working not being interrupted when the network is up. Though, there are some things that require a page refresh e.g. schemas saving, compilation, etc.



    Like every web-platform, Creatio can handle it. If there was a request sent to the server and the server is unavailable (due to the connectivity issues) then the request will be stopped by timeout, but the request will be sent if the internet connection is up before the timeout.

    Business processes operate on the side of the server and it has nothing to do on the client's side. If you're out of internet connection and the process is running but there's no user action on elements required - it will continue running. For example, if the running process should execute the page opening (requires user action) the page won't be opened and you'll see the notification on the CTI Panel on the right (http://prntscr.com/sl8jst) with the message that the user action required in the particular business process.

    In general, business processes should not crash when the network connection on the client is down.



 WebSockets issue (as a consequence of the network issues) affects the fact of page opening only. If WebSockets doesn't work you'll get a notification on the right panel as I've mentioned earlier



Thank you.

    Hello!

 

    Yes, the loaded page won't crash until you try to refresh it.

When you have some page or the list of records opened and the network connection goes down - you'll be able to continue working not being interrupted when the network is up. Though, there are some things that require a page refresh e.g. schemas saving, compilation, etc.



    Like every web-platform, Creatio can handle it. If there was a request sent to the server and the server is unavailable (due to the connectivity issues) then the request will be stopped by timeout, but the request will be sent if the internet connection is up before the timeout.

    Business processes operate on the side of the server and it has nothing to do on the client's side. If you're out of internet connection and the process is running but there's no user action on elements required - it will continue running. For example, if the running process should execute the page opening (requires user action) the page won't be opened and you'll see the notification on the CTI Panel on the right (http://prntscr.com/sl8jst) with the message that the user action required in the particular business process.

    In general, business processes should not crash when the network connection on the client is down.



 WebSockets issue (as a consequence of the network issues) affects the fact of page opening only. If WebSockets doesn't work you'll get a notification on the right panel as I've mentioned earlier



Thank you.

Bohdan Zdor,

Thank you Bohdan for clarifying!

Show all comments

First off all, if you're just accessing the local install via localhost, you can turn on a development certificate in the bindings for the website in IIS

 

However, if you're accessing it via some name from outside of the server itself, like devserver.mydomain.com, then you can get a free certificate from LetsEncrypt.org. There is a tool you can get from https://CertifyTheWeb.com (that uses LetsEncrypt.org) that you can use to easily add the cert (and keep it renewed) in IIS

 

Ryan

Ryan Farley, thanks. I added IIS Express Development Certificate as you said, but I take not trusted certificate

Nataliia,

 

You'll need to also install the certificate in the Trusted Root Certification Authorities store for the local computer and for the user. 

 

To make it clear, I've recorded a video showing the complete steps here: https://share.customerfx.com/kpuLJxNw - I've also written up the complete steps on my website here https://customerfx.com/article/how-to-run-a-local-development-creatio-i…

 

Hope this helps.

 

Ryan

Ryan Farley, very good instruction, but...

No, It didn`t help( . I reset iis too, clear cash but nothing help (. I see "not secure".

Hello Nataliia,

Repair IIS or try to reinstall IIS from official website.

 

Nataliia,

 

try to repair internet information services (iis) manager or Reinstall it from official website

Show all comments
7.15
Studio_Creatio

Hi 

 

I made a Multi Select lookup as described in this article using ConfigurationEnums:

https://academy.creatio.com/documents/technic-sdk/7-16/creating-detail-selection-lookup

It can be also done using LookupMultiAddMixin as described on this article:

https://academy.creatio.com/documents/technic-sdk/7-15/adding-multiple-records-detail

 

Theses two articles lead to the same result in different ways.

 

In both methods, selected records are filtered out from the selection.

 

My question is how to make the chosen records be shown on the lookup as checked, if they were already chosen.

 

I can cancel the filter but when doing so, chosen records are displayed as not chosen. The check box remain empty.

 

Did anybody succeeded in doing so ?

Like 0

Like

1 comments

Dear Oren,

 

In order to implement the required functionality please debug the “BaseManyToManyGridDetail” and “LookupPage” schemas. Please feel free to use the “IsDebug” mode for it. Please find more information about it in the article by the link below:

 

https://academy.creatio.com/documents/technic-sdk/7-16/isdebug-mode

 

Best regards,

Norton

Show all comments
7.15
Studio_Creatio

Hello all,

After I selected Object to inherit access permissions I clicked publish and I got the error: Internal failure occurred while running MSBuild. Has my change been published or more likely it did not? Will this affect my package?

Regards

Like 0

Like

3 comments

Hi Yania,

 

You are using the trial PostgreSQL build and we need to reproduce the same behavior on our end so to tell you the exact reason. Can you please specify for which object have you enabled access rights inheritance and also which object was chosen to inherit access rights from?

 

Thank you in advance!

 

Best regards,

Oscar

Hello Oscar,

I was using Studio demo site where I created a custom section and a details page that belonged to that section. The detail had to inherit permissions from the section. I tried it again today and I got a different error: Errors occurred while compiling configuration. See logs for more details. Then I removed the "inheritance access permissions from" option and while attempting to publish, then I got same error as before regarding MSBuild. I cant publish now because I keep getting the first error "Errors occurred while compiling configuration. See logs for more details". 

Yania,

Hello Yania,

 

Please email us at support@creatio.com and provide us with the link to the app and with access to it and we will take a look at the issue more deeply. We've also enabled logging for PSQL applications and now we should be able to determine the root cause of the problem, but we need to reproduce the error on our end.

 

Thank you!

 

Best regards,

Oscar

Show all comments
edit page
7.15
Studio_Creatio

Hi;

I create the edit page which contain editable detail on it

When i run this page from section or from process i can edit this detail

when i run it from another edit page by the link in noneditable detail i cant edit it there is no add button and when i enter the detail the data disapear.

 

Regards

Tomek

Like 0

Like

1 comments

Usually, when the data is disappearing, I have had the wrong columns set in the Detail setup in the Page Wizard. If the detail is looking for the wrong columns in the two sections, the link between them is broken. and it will create the records but not show them. It is hard to know without more information. 

Show all comments
7.15
Studio_Creatio

Hi;

My wait for timer element last extreamly long

I set wait for timer for 30 secont it takes almost 3 days

any ideas.

Details in attached file

Regards

Tomek

 

File attachments
Like 0

Like

1 comments

Hi Tomek,

 

Seems that you have a huge number of processes that use the timer element and that's why the scheduler can't process some of them in time and also I can see that the next time the timer got started is in the morning after several days. Please apply these two recommendations and there shouldn't be any problems with the timer in the future:

 

1) Please find the "threadCount" parameter in the root Web.config file of the application and change the value of this parameter from 5 (default) to 10 and check the result after that. We do not have a formula so to count the needed value of this parameter and if it won't help you need to try to change the value to 15 and check the timer after that.

 

2) The fact that the timer job was executed in the morning  can tell us that your application goes to the "idle" mode at night (Idle Timeout in IIS). 

 

If this is a cloud-based application please email us at support@creatio.com and ask us to disable the "idle" mode for your app and also modify the value of the "threadCount" parameter. If this is an on-site application please apply needed changes to the root web.config file and disable IIS timeout in the IIS settings.

 

Best regards,

Oscar

Show all comments
pop up
confirmation_message
Development
Development Guide
developer. know-how
7.15
Studio_Creatio

I am searching for any article or guidance to add an confirmation message when user tries to change status in a section record, the system first asks user via confirmation message(pop up). The pop message should state whether if you are sure to change state or not with Yes or No option.

I only that there will be use of localizable strings in object schema but how it all adds up to create a pop message.

can anyone help in this matter?

Thank you

Like 0

Like

8 comments
Best reply

I do have this article describing how to show various prompts in Creatio via code, like confirmation dialogs etc.

https://customerfx.com/article/displaying-information-confirmation-and-error-dialogs-in-bpmonline/

 

Is that what you're after?

Ryan

I do have this article describing how to show various prompts in Creatio via code, like confirmation dialogs etc.

https://customerfx.com/article/displaying-information-confirmation-and-error-dialogs-in-bpmonline/

 

Is that what you're after?

Ryan

Hello Ryan,

 

Yes, I am looking for the exact thing. Currently I want to add a Prompting for Choices confirmation dialog written in your article to a section after change in status. 

 

Can you please tell me if any of Creatio CRM section have this in-built (confirmation message) so that I can find the code to understand how to bind functionality or process to the YES or NO button?

 

Thank you

Hello Ramnath Sharma,

 

Current versions of the Creatio CRM don't have such kind of ready in-built pop-up confirmation.

On the other hand you can try to use the methods which were provided by Ryan Farley:

 

https://customerfx.com/article/displaying-information-confirmation-and-…

 

Also in articles below you will be able to find information about other kinds pop-up windows (with input fields, buttons, etc.):

 

https://academy.creatio.com/documents/technic-sdk/7-15/adding-pop-summa…

 

https://academy.creatio.com/documents/technic-sdk/7-15/creating-pop-sum…

 

https://academy.creatio.com/documents/technic-sdk/7-15/creating-pop-sum…

 

https://academy.creatio.com/documents/technic-sdk/7-15/adding-pop-hints

 

You can also analyse the the any minipage code and create a custom page that would open upon your preferred conditions.

 

Best regards,

Roman

RAMNATH SHARMA,

 

Yes, you can use that code in a section, page, or anywhere in Creatio. To do a Yes/No prompt, you'd add code like this (from the article I posted)

Terrasoft.showConfirmation("Would you like to do the thing?", function(result) { 
    if (result === Terrasoft.MessageBoxButtons.YES.returnCode) {
        // the user selected "yes" - do something here if needed
    }
    else {
        // the user selected "no" - do something here if needed
    }
}, ["yes", "no"], this);

To show this confirmation after the user changes the Status field, you'd need to wire up a change event for that column, I describe how to do that here: https://customerfx.com/article/triggering-an-event-when-a-field-is-changed-on-a-page-in-bpmonline/

 

Inside the method that fires when the Status column is changed, you'd place the code above, and could then react as needed.

 

Hope this helps,

Ryan

Thank you Roman and Ryan.

 I will follow the suggested articles to implement pop up confirmation.

Ryan Farley,

Is it possible to send these informational / confirmation messages from business processes (Script tasks, maybe) ?

Ryan Farley,

Hi,

I want to use this code, but not sure where to add the code to?

Is that in a script task of a process?

Thanks

Chani Karel,

The code listed above and in the linked article are for client-side code (code that would exist on a page). It is possible to send a message from a process that would get received on a page, but that does require some programming on both sides (a script task in a process and also modifying code on a page, or somewhere in the client to receive the message from the process and display the prompt - however, there's no way to get the result of the prompt back to the process so it can proceed according to the value selected). This article explains how to send a message from a process to be received in the client https://customerfx.com/article/sending-a-message-from-server-side-c-to-…

Ryan

Show all comments
7.15
Studio_Creatio

Hi 

 

I want to create a query on a Section Schema in the same way I do it normally on a Page Schema.

 

On a Page Schema It usually starts with getting the current record ID like this:

 

var recordID = this.get("Id");

 

But when I do the same on the Section Schema I get an undefined value to my recordID variable.

 

Does some one know how to fix this issue ?

 

 

Like 1

Like

3 comments

Since the Section Schema is a list, you cannot get the Id by simply using:

this.get("Id")

Instead you must use the following to first get the currently active row:

this.getActiveRow().get("Id")

 

Harvey Adcock,

It works! thank you so much Harvey.

Harvey Adcock,

 

Hi. I am having issues of the same kind. I want the text value of one of my record's text-values. I have tried all of these and I'm not getting the result I want.

 

This worked on the Page metod:

var path= this.get("MyString"); 

 

Any of these does not work in the Section metod:

var activeRow = this.get("ActiveRow");
var path = this.get("GridData").get(activeRow).get("MyString").value;
var path = this.get(activeRow).get("MyString").value;
var path = this.get("MyString").value;

I also tried all of them with/or without the .value

Show all comments
#WebService
7.15
Studio_Creatio

Hello, I want to invoke a webservice call passing two parameters

 

https://mindicador.cl/api/{tipo_indicador}/{dd-mm-yyyy}

Where {tipo_indicador} is a string like uf, dolar, euro and so on

and {dd-mm-yyyy} is the current date

 

For example if I want to get the value of today euro change rate i need to invoke

https://mindicador.cl/api/euro/09-04-2020

 

But i cannot create methods to every day...how can I specify the value of the parameters when invoke the web service?, in Creatio Webservice object in the process I was working on have no the possibility to specify parameters, how can I did it?

 

Please see at http://prntscr.com/rw4h8u

 

Thanks in advance

 

 

Like 0

Like

2 comments

Dear Julio, 

 

You can specify web service request parameters in the web service section in the method detail: 

https://prnt.sc/rzx19d

https://prnt.sc/rzxcka

After that you would be able to populate them in the web service call element: 

https://prnt.sc/rzx1i9

Thanks Dennis

Show all comments