Testing Workflow

5 posts, 1 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 01 Apr 2014 Link to this post

    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
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 04 Apr 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 21 May 2014 in reply to Zarko Link to this post

    Hi,

    this is it! Thanks so much!

    Best Regards
    Rene

  5. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 21 May 2014 in reply to ITA Link to this post

    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
  6. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 23 May 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready