Building a K2 Smartform spider part 6

So we have looked at the API and we have made the endpoint assembly and this into a couple of SmartObjects. Now that we have these  we can now  build some View and Smartforms to show the data on the Smartforms.

SmartObject ReCap

So we have two SmartObjects one for the Views and one for the Smartforms.


Looks at details of the view from it’s basic details to it’s rules



Looks at details of the view from it’s basic details to it’s rules



The views of FormSpider


Now we can build some views so we can interact with the SmartObjects. Majority of the views will be list views as the methods return back multiple rows of data. The only two that are not going to be list views will be the two forms that allow us to search for a specific Smartform or view.


Each of the items views contains the following fields

  1. Artifact name (picker control)
  2. Description (data label)
  3. Version (data label)



Each of the item views has the same rule, which is when the picker control is changed we then transfer the description, version etc.. from the selected row into the view data labels.


List Views


Each of the list views will have the parameter of ‘ViewName’ or ‘FormName’ depending on whether it’s a form view or view view. This allows us to pass in a form name or view name and then load up the parameters for that arifact.



We also have view to show all the properties of the artifact


Views in a form and forms that have a certain view in



The control views shows all the controls on the artifact, whether they are hidden controls such table properties and user controls.


By clicking on a control in the list,  there will be a pop up that show’s all the properties of that control.



There is also a view to show all the events on the artifact


By clicking on an event,  we are then shown  all the conditions, actions for that event




Using the Form Spider assembly, we can also access the details of the SmartObjects, such as its properties, methods and the views the being used by that SmartObject.


We could take this even further by getting the details of the service object, but for this version I have just kept it with the basic details


Like with the SmartObjects we can also use Form spider to have a look at the workflows on the K2 server as well.

The current version will show the basic details about the workflow such as its description, number of versions etc..

It also shows the process data fields and XML data fields, the activities that make yo the workflow and also  what Smartforms and Views are linked to that particular workflow.


Also by clicking on activity we also get to see the events that make up that activity as well.


Below is a video that goes through the  a demo of Form Spider

2 thoughts on “Building a K2 Smartform spider part 6

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s