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.

Spider.smo.Views

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

View.smo

Spider.smo.Smartform

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

form.smo

 

The views of FormSpider

VIEWSPIDER

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)

view

formheader

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.

pickerchanged

List Views

Parameters

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.

parameters

Properties

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

properties

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

viewsinform

Controls

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

formcontrols

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

CONTROLPROP

Rules

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

rules

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

viewrules

 

SmartObjects

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.

SmartObjectsSpider

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

Workflow

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.

workflowspider

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

workflowevents

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s