+44(0)1908738254
YOUR EXPERT RPA PARTNER

Team up with our RPA strategy and tech specialists for maximum automation impact

Find out more
Harness the power of UiPath in your business.
WATCH NOW

Save money and spend more time on priority work.

Book consultation
READY, SET, AUTOMATE

Let's choose, design and deploy a process automation solution for your business.

Find out more
TRANSFORM YOUR BUSINESS

Let's analyse your business to discover opportunities for innovation and automation.

Find out more

Begin your business transformation journey

Book consultation
AUTOMATE EVERY FUNCTION

Automate where it matters most. Scale to solve challenges in every area

Find out more
GIVE EVERY TEAM THE TOOLS FOR SUCCESS

Equip people with user-friendly solutions that save time and make work easier

Find out more

Which business problem
can we solve first?

Book consultation
31 May 2016

K2 SmartObject Properties vs Method Parameters

SmartObject Properties vs Method Parameters

When assigning the method bindings of our new SmartObject method. The question is:

When do we need to create and use SmartObject method parameters?

And when do we need to create and use SmartObject properties?

K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.

 

Free K2 Five Upgrade Review

smartobject properties vs method parameters

K2 provides you with four options for bindings, SmartObject property, SmartObject method parameter, Specific value and System value as shown above. In most cases you will be able to use the existing SmartObject properties. But if your method requires additional input parameters you will have to create SmartObject method parameters and map them accordingly.

smartobject properties vs method parameters

The parameter will then serve as placeholders that you will be able to assign data to on the Input Mappings screen when you configure your method call as below.

smartobject properties vs method parameters

On the other hand, you will note that if you would assign the return property to a SmartObject method parameter as the one below:

smartobject properties vs method parameters

There will be no return property to select in the Context Browser.

smartobject properties vs method parameters

If you use a SmartObject property instead:

smartobject properties vs method parameters

You will now see that you can select it as a return property in the Context Browser.

smartobject properties vs method parameters

So to summarize, you can only use SmartObject method parameters when you are assigning the bindings to your method input properties. On the return properties you will then need to use a SmartObject property to be able to select it in the Context Browser.

Need further technical advice or support?