Welcome to the Synergy Technical Blog and Technical Knowledge Base – a resource that shares intelligent and creative solutions that have been built and implemented on real-time projects on behalf of Velocity clients.
With the K2 Workflow process, we have found that a large percentage of clients at some point request to have a visual representation of the Workflow within their application. By using a combination of K2 SmartForm features we can accomplish this.
When working with K2 Workflow components, it is often necessary to specify when a K2 Workflow component may execute. We can control the time of execution, by configuring what is called a “Start Rule”.
In today’s blog, this is exactly what I’ll show you how to do. First we’ll need a Workflow Activity. A Workflow Activity is a container for K2 Workflow components. Drag-and-Drop an event from the toolbox onto the K2 Workflow Designer, the event will automatically be placed inside a Workflow Activity.
When working with any K2 SmartForm project, you sometimes find that pieces of functionality mimic another or call the same procedures.
In K2 you can’t physically copy and paste rules, but you can execute one rule from within another rule.
This is really convenient when you have to execute the exact same set of conditions / functions from multiple control interactions, and it also makes later changes a lot simpler since the change needs to be done in only one place. When you need something extra to be done that the “base rule” doesn’t take care of you can just piggy-back it before or after the referenced rule as needed.
When working with K2 Workflow components, it is often necessary to satisfy a specific condition before an K2 activity is allowed to plan. We can control the flow through our K2 Workflow components in this way, by creating what is called a “Preceding Rule”.
In today’s blog, this is exactly what I’ll show you how to create.
First we’ll need a Workflow Activity. A Workflow Activity is a container for K2 Workflow components. Drag-and-Drop an event from the toolbox onto the K2 Workflow Designer, the event will automatically be placed inside a Workflow Activity
When you create a list view in K2 SmartForms, to which one can add rows, and which contain Text Boxes, you might notice a bug when viewing the form through Internet Explorer 8.
This bug occurs intermittently dependent on the exact configuration of your list view. The bug manifests as follows: When you add a second row to the list view, the text boxes from the first item disappears. This bug is indicated in the screenshot below:
We have previously talked about the different uses of K2 SmartForms expressions, but today we will be using these expressions in combination with conditional styling. The example we will be using is to display a progress percentage together with a progress colour for grouped activities.
The K2 Management Console is a crucial part of any K2 Project. You can manage workflow tasks, workflow roles & permissions, server rights, specify working hours as well as view and manage workflow errors.