This is a migrated thread and some comments may be shown as answers.

Testing Workflow

4 Answers 68 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 01 Apr 2014, 04:38 PM
Hi,

we are using RadDiagram as a WorkflowDesigner for a business-software. How can we test different processes, whether they are produced correctly? Is there a Startpoint (Shape), are the Connectors ok, ...? Any ideas how so solve this?

Thanks
Best Regrads
Rene

4 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 04 Apr 2014, 01:15 PM
Hi Rene,
Unfortunately the RadDiagram doesn't have a built-in workflow validator so you'll have to do this manually. There are different ways to validate your diagram and it all depends on your custom scenario - are you using MVVM, custom shapes, custom connectors and etc.
By design the diagram control is highly customizable and you can change a lot of its default behaviors - I've attached a sample project that has a runtime connection validation - you can start a connection only from a right connector and you can end it only in a left connector, also each connector can have only one connection.
I hope I was able to help you and if you have more questions feel free to ask.

Regards,
Zarko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
ITA
Top achievements
Rank 1
answered on 21 May 2014, 09:17 AM
Hi,

this is it! Thanks so much!

Best Regards
Rene

0
ITA
Top achievements
Rank 1
answered on 21 May 2014, 09:43 AM
Hi,

one more question. I use a custom Shape (Geometry = ShapeFactory.GetShapeGeometry(FlowChartShapeType.DecisionShape))
How can I examine how many connectors are incoming and how many are outgoing? Here is just one incoming connector allowed?

Thanks
best Regards
Rene
0
Accepted
Zarko
Telerik team
answered on 23 May 2014, 01:39 PM
Hi Rene,
You can iterate through the Connectors collection of the RadDiagramShape and check what the connectors are with something like this:
foreach (var connector in shape.Connectors)
{
    var inOutCon = connector as InOutConnector;
    if (inOutCon != null)
    {
        // InOutConnector.
        var direction = inOutCon.Direction;
    }
    else
    {
        // normal connector.
    }
}
I hope I was able to help you.

Regards,
Zarko
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
Zarko
Telerik team
ITA
Top achievements
Rank 1
Share this question
or