Question

Hi everyone,

I need to call a sub-process from a C# script task, I found this code:

var showAdressProcessUId = new Guid("abfbf7ee-e499-45e9-9d22-b9e91a46683d");
var manager = UserConnection.ProcessSchemaManager;
var schema =  (ProcessSchema)manager.GetInstanceByUId(showAdressProcessUId);
var moduleProcess = schema.CreateProcess(UserConnection);
moduleProcess.SetPropertyValue("PageInstanceId", PageInstanceId);
moduleProcess.SetPropertyValue("ActiveTreeGridCurrentRowId", ActiveTreeGridCurrentRowId);
moduleProcess.SetPropertyValue("TreeGridSelectedRowsIds", TreeGridSelectedRowsIds);
moduleProcess.SetPropertyValue("SchemaName", "Contact");
moduleProcess.SetPropertyValue("RouteMode", false);
moduleProcess.Execute(UserConnection);

From ShowContactAddressOnMapProcess

If I use it for my process:

var _sendMailId = new Guid("84e96844-b0ae-4edc-8b5e-20d1ba13fb8b");
var _manager = UserConnection.ProcessSchemaManager;
var _schema = (ProcessSchema)_manager.GetInstanceByUId(_sendMailId);
var _moduleProcess = _schema.CreateProcess(UserConnection);
_moduleProcess.SetPropertyValue("Test1", "Something");
_moduleProcess.Execute(UserConnection);

Throws this exception :

Terrasoft.Common.InvalidObjectStateException: missing property "Test1" of type "ProcessComponentSet".

 

I would need to know how it works or another way to do it, I need to call a sub-process inside a for loop.

Thanks.

Like

2 comments

Dear Ezequiel,

It is nor recommended to use sub-processes and the processes in general for such purpose. Technically you can call a business process from a business process. But if you correct the code above and execute it  the system will freeze and the processes will block each other. All users meanwhile will not be able to use the system properly.

Please adjust the business-purpose you want to achieve in order to avoid using business-processes or find another architecture solution.

Oliver

Hi, 
I see, I'm trying to send an email inside the loop, but I can't find in any of the existing process how to send an email with a template though a script task.

If someone knows how to do it or has an example, I would appreciate it if you could explain it or show it to me.

Thanks.

Log in or register to comment
Question

Versions of application "7.11.0.3122" and configuration "7.12.1" are incompatible

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Terrasoft.Common.AppStartupException: Versions of application "7.11.0.3122" and configuration "7.12.1" are incompatible

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Like

1 comments

Dear Ruchir,

This message appears, because you are trying to update the version from 7.11.0 to 7.12.1 directly. For successful update you need to do step by step update through all intermediate versions of the instance. Please contact our support team and they will provide you with all necessary installation files. After that you should install them one by one till 7.12.1 version and it will do the trick.

Best regards,

Oscar

Log in or register to comment
Question

Hello,

I am looking to modify the attachments functionality to add custom fields to it. Is there a way to do this in a manner similar to other custom objects using the page designer?

 

Like

1 comments

Dear Allen,

There is a manual on adding the custom columns to the attachments in our SDK - https://academy.bpmonline.com/documents/technic-sdk/7-12/displaying-additional-columns-attachments-tab

Lisa

Log in or register to comment
Question

Hello community! 

I need create a  process to generate a task to any record returned from a read element. How need configure the element to make a "for each"?

Example:

http://prntscr.com/jx7y7s

 

 

Like

4 comments

I solved part with the case https://community.bpmonline.com/questions/business-process-loop-read-data-element but have problem with create the not exist in the filter. http://prntscr.com/jx9b3r How can do that?

Dear Federico,

It's possible to process multiple records, however, it's wrong architecture. It will decrease the performance of the system very much. If you need to run a process for multiple records, then you probably need to optimize your request in order to avoid such a task. 

If possible, I'd recommend you to create a process that starts on adding new record. The process will insert a new task and it will run for every new record. If that doesn't suit the business logic, you can add the gateway after Read Data and create a conditional flow that will check how many records were found. If there are more then 0 records, the process would go to Read Data again. If there are 0 records found in Read Data, the process finishes. 

Lisa

Lisa Brown,

Thanks can you give a sample of that? I need add the activity to contact when not exist yet in the system. Just need check the "exists" condition in the add record.

Dear Federico,

In this case you can even use only one business process element  - Add Data with the following settings:

Lisa

Log in or register to comment
Question

Hi community!

Could you give me an example of how to call a business process from a script task with parameter passing

Thanks you!

King regards!

Ezequiel

Like

1 comments

Dear Ezequiel,

The task was already discussed in another Community post here - https://community.bpmonline.com/questions/call-business-process-script-task. Feel free to check the solution provided there. 

Lisa

Log in or register to comment
Question

I am trying to create a virtual detail object to present a dynamic field.  BPM will call a webservice to populate the field when it is done.  I cannot find the Terrasoft DLLs online.  Does anyone know where I can find these.  It looks like I need these libraries

 

Terrasoft.Nui.ServiceModel.DataContract.EntityCollection;

Terrasoft.Nui.ServiceModel.DataContract.ErrorInfo;

Terrasoft.Nui.ServiceModel.DataContract.SelectQueryResponse;

Terrasoft.Nui.ServiceModel.DataContract.DataValueType;

 

Thanks

Like

2 comments

Hi,

You can implement the application on-site and have the access to the dll's. Alternatively, you can write an email to support@bpmonline.com and the libraries will be sent to your email address.

The first option is preferable, though, as having the application on-site will be useful for your development further as well.

Lisa

Thanks!  

Log in or register to comment
Question

Hi Community!

How are you?

How could I put together a query similar to that with ESQ on the server side? Can I use aggregation functions?

 SELECT Max(l.CreatedOn), l.SmrRecordId 
   FROM SmrLoggingRecord l
     JOIN [dbo].[Case] c
        ON l.SmrRecordId = c.Id
        AND c.UpriEstadoCasoId = '78346E42-83AD-4790-B901-DB750A1D157E'
  WHERE l.SmrColumnCaption = 'Estado del Caso' 
  GROUP BY SmrRecordId

King Regards!

Ezequiel

 

 

Like

1 comments

Hi,

There is good description here how to write such queries. When reading pay attention to "Adding columns to query" section there. You can not only use aggregation in queries but also can use aggregation in filters

Log in or register to comment
Question

Hi 

  I am new to bpm online. I need to create an application to save user data, save documents and store the documents after approval workflow by HR. Where can I start the development? What is the IDE for creating this? I have gone through https://academy.bpmonline.com/. But not able to find proper information for a starting developer. Where can I create a list? Where do I need to write code for saving data to list? Can anyone please help me?

Like

1 comments

Dear Reshma,

We have a separate part of the Academy dedicated to the development on our platform - https://academy.bpmonline.com/documents/technic-sdk/7-12/bpmonline-development-guide. You will be able to find a lot of useful manuals and examples there. 

Most of the described tasks can be achieved without the development though. You can use our out-of-the-box system to cover the cases of storing the user data, saving and approving documents, creating lists etc. Thus, you may also turn to the manuals from Academy for the functionality description. 

Lisa

Log in or register to comment
Question

Hi Community!

In this Opportunity, i want know how import Boolean data with "Import Wizard". 

That is, in the excel I have some fields of the Boolean type to map in the corresponding fields of some entity in this case, the entity is "Case"

I tried putting in Excel, the values ​​0,1, T, F, Yes, No, for the correspondence with true / false but none works, the field in the application does not map

I attach images below

I hope your can help me!

King Regards,

 

Ezequiel

 

Like

1 comments

Dear Ezequiel,

Please change the fields type in Excel file to text format:

Then please type in all in lower case true/false:

Then try to import the data. It should work in this way as expected. Our R&D team is working on improving this functionality.

Best regards,

Lily
 

Log in or register to comment
Question

Hi

 

I've installed the plugin for MS Word 2013 64 bits ok, but after I selected the printable form the table with the fields doesn't appear to select the fields.

 

Any help?

 

Thanks

Like

5 comments

Hi Ulisses! 

Did you defined what printable fields you'd want to have on your printable in the Lookup named "Printable"

https://academy.bpmonline.com/documents/studio/7-12/setting-ms-word-printable-template

?

Hello,

Philip is right. This can be connected to the fact that the columns for the template are not set in the Printables lookup yet. Before setting up the template in Word, please follow these instructions: https://academy.bpmonline.com/documents/studio/7-12/registering-ms-word-printable

After that please set up a template in Word as it described here: https://academy.bpmonline.com/documents/studio/7-12/setting-ms-word-printable-template

If it is not the case, please describe your issue in more detail along with the screenshots. 

Best regards,

Lily

Philip Wierciszewski,

Thank you for you help, Philip.

I had already done it.

Regards

Ulisses

Lily Johnson,

Hi Lily,

Thanks for your help.

The problem was related with the  "MS Word printables setup wizard" from Marketplace.

After install it the problem occurs.

I tried to manage reports with a new demo version and before install the  "MS Word printables setup wizard" every thing worked perfectly, but after install it, the same problem happened.

I think it could be useful to other, in the same situation.

Regards

Ulisses

 

Hello,

If you installed the app or add-on from the marketplace, please check the support email. In case the developer is set as bpm'online, please send an email to bpmonlinelabs@bpmonline.com

Best regards,

Lily

Log in or register to comment