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.
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.
For those of you that are familiar with a programming language, Data Fields can be seen as a variable. For those of you that are not, a Data Field is simply a place holder for information that can later be accessed from anywhere within the K2 workflow.
The simplest way to create a K2 Data Field is by using the K2 Context Browser. The K2 Context Browser can be accessed from various points throughout the K2 workflow. For example, when we create a new SmartObject Event, we are asked to choose the applicable K2 SmartObject. Even at this point we have access to K2 Data Fields. To view the available Data Fields or create new ones, open the Context Browser and click on the “Process/Activity Data” tab. Expand the “Data Fields” node in the tree view.