In this sample, it is going to show how to get the visual workflow tracking work with BPM4Net. The reason we provide this sample is because WF only highlights activities inheriting from System.Activities.Activity. Activities like Decision in FlowChart, State in StateMachine cannot be highlighted because they are not System.Activities.Activity.
The reason of that is because the FlowChart and the StateMachine implements IActivityTemplateFactory so the Decision or the State can be added into those containers at the design time but cannot be added to other standard activities i.e. Sequence.