orosandrei / rehosted-workflow-designer Goto Github PK
View Code? Open in Web Editor NEW.NET Workflow Designer Rehosting & Custom Activity Library Example
Home Page: http://orosandrei.github.io/Rehosted-Workflow-Designer/
License: MIT License
.NET Workflow Designer Rehosting & Custom Activity Library Example
Home Page: http://orosandrei.github.io/Rehosted-Workflow-Designer/
License: MIT License
I want to also help bundle this into an MSI package
Do I need to use a different template for XAML
Currently hovering on menu or clicking on activities gives a golden/yellow colour which i intent to change to sky blue. Is there a way out to do so ?
Hi there, great lib 💯 however I cannot get it to run, its complaining the dlls cannot be loaded because of system.activities.- could not load system.activities or one of its dependencies
thanks
Papi
Is it possible to open more than 1 flow at a time? Like a tabbed feature. May need context perhaps?
The VB expression editor with intellisense does not seem to work.
As shown in image https://ibb.co/6rb8cjH, I create a new Custom (VB Intellisense ExpressionEditor) workflow and add Argument of type String. I add an Assign activity for a = a.SubString(0, 2), but no completions are displayed for a.SubString.
How to add debug functionality like step,step in,step over.
If you add an activity that implements IActivityTemplateFactory ( ForEach Activity for instance ) the editor throws an NullReferenceException at CreateExpressionEditor
( if you clear the declaredVariables list, you wont get the NullReferenceException any more, but then intellisense will not work )
I think the error happens in UpdateInstance in the RoslynExpressionEditorInstance
This ugly hack, seemed to solve the issue for me
` variableDeclarations = string.Join("", variables.Select(v => {
var c = v.GetCurrentValue() as System.Activities.Variable;
if (c != null) return c.Type.FullName + " " + c.Name + ";\n";
var d = v.GetCurrentValue() as System.Activities.DelegateArgument;
if (d != null) return d.Type.FullName + " " + d.Name + ";\n";
return null;
//return d.Type.FullName + " " + d.Name + ";\n";
}).ToArray());
`
The Expression service editor is implemented. However fails to work. Thanks
When I run the app, and try to Open a .xaml file with text below, I get this error:
System.Xaml.XamlException: 'The type ‘InArgument(local:TestWorkflowRequest)’ of property ‘request’ could not be resolved.' Line number '14' and line position '32'.
File:
<x:Members>
<x:Property Name="request" Type="InArgument(local:TestWorkflowRequest)" />
</x:Members>
local:TestWorkflow.request
<mca:CSharpValue x:TypeArguments="local:TestWorkflowRequest">null</mca:CSharpValue>
</local:TestWorkflow.request>
sap2010:ExpressionActivityEditor.ExpressionActivityEditorC#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
sap2010:WorkflowViewState.IdRefMiddleOfficeWorkflowActivities.Activity1_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<x:String>System</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Text</x:String>
<x:String>MiddleOfficeWorkflowActivities</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
Microsoft.CSharp
Pvtb.Framework.Configuration
Pvtb.Framework.Data
System
System.Activities
System.ComponentModel.DataAnnotations
System.Core
System.Data
System.Runtime.Serialization
System.ServiceModel
System.ServiceModel.Activities
System.Xaml
System.Xml
System.Xml.Linq
DataAccess
WorkflowService
mscorlib
MiddleOfficeWorkflowActivities
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<StateMachine.InitialState>
<State.Transitions>
<Transition.Trigger>
<local:TestWorkflowBookmark BookmarkName="Started" DisplayName="Started" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_1" />
</Transition.Trigger>
<Transition.To>
<State.Transitions>
<Transition.Trigger>
<local:TestWorkflowBookmark x:Name="__ReferenceID4" BookmarkName="In Review" DisplayName="InReview" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_2">
local:TestWorkflowBookmark.Result
<mca:CSharpReference x:TypeArguments="local:TestWorkflowRequest">request</mca:CSharpReference>
</local:TestWorkflowBookmark.Result>
</local:TestWorkflowBookmark>
</Transition.Trigger>
<Transition.Condition>
<mca:CSharpValue x:TypeArguments="x:Boolean">request.RequestedAction == "Approve"</mca:CSharpValue>
</Transition.Condition>
<Transition.To>
</Transition.To>
<Transition.Condition>
<mca:CSharpValue x:TypeArguments="x:Boolean">request.RequestedAction == "Reject"</mca:CSharpValue>
</Transition.Condition>
<Transition.To>
<State.Transitions>
<Transition.Trigger>
<local:TestWorkflowBookmark BookmarkName="Waiting for Information" DisplayName="WaitingForInformation" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_4" />
</Transition.Trigger>
<Transition.To>
<x:Reference>__ReferenceID0</x:Reference>
</Transition.To>
</State.Transitions>
</Transition.To>
</State.Transitions>
</Transition.To>
</State.Transitions>
</StateMachine.InitialState>
<x:Reference>__ReferenceID1</x:Reference>
<x:Reference>__ReferenceID0</x:Reference>
<x:Reference>__ReferenceID2</x:Reference>
<x:Reference>__ReferenceID3</x:Reference>
sads:DebugSymbol.Symbold3REOlxDSEktVEZTXE1pZGRsZU9mZmljZVxEZXZlbG9wbWVudFxBZGRfSW5pdGlhbFJlbGVhc2VcTWlkZGxlT2ZmaWNlXE1pZGRsZU9mZmljZVdvcmtmbG93QWN0aXZpdGllc1xUZXN0V29ya2Zsb3cueGFtbBISBxJaAQI3A3wSAgEBOQd1DwIBFkAPcRcCAQhiF20fAgEEUBdQiAECAQI9Dz2TAQIBGEQXSjQCARJNF016AgEQVRdcNAIBDF8XX3kCAQpmH2bBAQIBBj04PUECARlEQERLAgEVRx1HewIBE1VAVUsCAQ9YHVh7AgENZkhmYQIBBw==</sads:DebugSymbol.Symbol>
sap2010:WorkflowViewState.ViewStateManager
sap2010:ViewStateManager
<sap2010:ViewStateData Id="TestWorkflowBookmark_1" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="TestWorkflowBookmark_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="State_4" sap:VirtualizedContainerService.HintSize="114,61">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">403,299.5</av:Point>
<av:Size x:Key="ShapeSize">114,61</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Transition_1" sap:VirtualizedContainerService.HintSize="430,507">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">357,270 454.3,270 454.3,299.5</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">36</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">34</x:Int32>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="TestWorkflowBookmark_5" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="TestWorkflowBookmark_4" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="Transition_2" sap:VirtualizedContainerService.HintSize="430,507">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">73,340 43,340 43,270 243,270</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">37</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">37</x:Int32>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="State_3" sap:VirtualizedContainerService.HintSize="114,61">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">73,309.5</av:Point>
<av:Size x:Key="ShapeSize">114,61</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Transition_3" sap:VirtualizedContainerService.HintSize="430,507">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">300,300.5 300,336.95 187,336.95</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">39</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">32</x:Int32>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="State_2" sap:VirtualizedContainerService.HintSize="114,61">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">243,239.5</av:Point>
<av:Size x:Key="ShapeSize">114,61</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Transition_4" sap:VirtualizedContainerService.HintSize="430,507">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:PointCollection x:Key="ConnectorLocation">300,168.5 300,239.5</av:PointCollection>
<x:Int32 x:Key="SrcConnectionPointIndex">39</x:Int32>
<x:Int32 x:Key="DestConnectionPointIndex">38</x:Int32>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="State_1" sap:VirtualizedContainerService.HintSize="114,69">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">243,99.5</av:Point>
<av:Size x:Key="ShapeSize">114,69</av:Size>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
<x:Double x:Key="StateContainerWidth">100</x:Double>
<x:Double x:Key="StateContainerHeight">33.040000000000077</x:Double>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="StateMachine_1" sap:VirtualizedContainerService.HintSize="614,636">
sap:WorkflowViewStateService.ViewState
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<av:Point x:Key="ShapeLocation">270,2.5</av:Point>
<x:Double x:Key="StateContainerWidth">600</x:Double>
<x:Double x:Key="StateContainerHeight">600</x:Double>
<av:PointCollection x:Key="ConnectorLocation">300,77.5 300,99.5</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="MiddleOfficeWorkflowActivities.Activity1_1" sap:VirtualizedContainerService.HintSize="654,716" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.