Question

How do I declare custom class in 'Usings' list of Business Process

After I successfully created a class in a custom package, in a custom source code file, how do I declare it in the 'Usings' list under the 'Methods' tab?

 

Like 0

Like

5 comments

Hello Jordan,



Basically, when you create a class in a source code file, the class is inside the namespace. So, in business process you should put the name of namespace in  "usings" list.



Best regards,

Alex

Alex_Tim,

I do that, but I get a compiling error when putting the namespace in the "usings" list:

 

The Type or Namespace "JordansNamespace" could not be found

Jordan Kincer,



The possible issue is that you simply forgotten to publish the source code. Also, please note that source code is written in C# language. 

You can find more info about source code schema here:

https://academy.bpmonline.com/documents/technic-sdk/7-13/source-code-de…



If you will have any further questions, please send us the source code and screenshot of "Methods" tab in business process.



Best regards,

Alex

Here is the namespace declaration in my source code file. The file's name is 'UsrLifeCompanyProposals' to match the class name. 

I have been publishing the source file without error. Here is its 'Using' in the business process.

Yet when I try to save the business process, I get the following error:

Jordan Kincer,



Unfortunately, it`s not clear from your screenshot with usings if you`re using the alias for the namespace. Try to remove the alias if it is indicated. Also, try to publish the source code again before working with business process.

To achieve that you should click on "publish" button: http://prntscr.com/m50e58

If it won`t help try to create the business process again from scratch.



Best regards,

Alex

 

Show all comments