workflow-activity

WF4 - Composite custom activity throw an strange exception when using OutArgument

人盡茶涼 提交于 2021-01-28 05:32:28
问题 I'm trying to use a composite custom activity that apply a regular expression and return a boolean if it match. The pattern is something encoded in design time. The source text is coming from an activity. This activity is also specified in design time (I've made a activity designer that allow to drop an activity as source) But I also need to return what sub string match the expression, so I added an OutArgument to retrieve the string that match, and the string captured. Here is the code:

How to Start activiti workflow using rest api?

北城以北 提交于 2020-01-17 18:01:31
问题 I create an activiti workflow. I want to start workflow using rest api. Please give some solution for the same. Thanks in advance 回答1: Take a look at the Activiti REST-API Reference: http://www.activiti.org/userguide/#_start_a_process_instance If you want to start a process instance, you can use POST runtime/process-instances 回答2: this is the the link start a workflow through rest-api:P http://localhost:8080/activiti-rest/service/runtime/process-instances and pass your query with this link

How to Start activiti workflow using rest api?

三世轮回 提交于 2020-01-17 18:01:07
问题 I create an activiti workflow. I want to start workflow using rest api. Please give some solution for the same. Thanks in advance 回答1: Take a look at the Activiti REST-API Reference: http://www.activiti.org/userguide/#_start_a_process_instance If you want to start a process instance, you can use POST runtime/process-instances 回答2: this is the the link start a workflow through rest-api:P http://localhost:8080/activiti-rest/service/runtime/process-instances and pass your query with this link

Windows Workflow 4.5 Dynamic update using XAML / Designer

那年仲夏 提交于 2020-01-16 04:34:07
问题 I understand that Windows Workflow foundation 4.5 supports side by side and dynamic update of Workflow definition. I found few samples on internet, but all describes Code based approach for updating the workflow. I wanted to make a utility which is used by developer to update the workflow without coding. (using only Xaml manipulation should be our ideal case) My Utility does the following things, I take Base Xaml (the workflow definition I wanted to update) File Name and Assembly (V1) from

How to run another activity in a customized activity of TFS 2012 build process template?

血红的双手。 提交于 2020-01-05 11:13:28
问题 I'm writing a customized activity for TFS build process workflow, e.g. guideline here. In my C# CodeActivity .Execute() method, I want to run another activity, e.g. ConvertWorkspaceItem as descibed here. How can I do that? 回答1: Try doing some research with a NativeActivity instead of a CodeActivity, so the execution context allows you to schedule other child activities. E.g.: class YourActivity : NativeActivity { protected override void Execute(NativeActivityContext context) {

How to run another activity in a customized activity of TFS 2012 build process template?

此生再无相见时 提交于 2020-01-05 11:13:11
问题 I'm writing a customized activity for TFS build process workflow, e.g. guideline here. In my C# CodeActivity .Execute() method, I want to run another activity, e.g. ConvertWorkspaceItem as descibed here. How can I do that? 回答1: Try doing some research with a NativeActivity instead of a CodeActivity, so the execution context allows you to schedule other child activities. E.g.: class YourActivity : NativeActivity { protected override void Execute(NativeActivityContext context) {

Add multiple Property Metadata to a Dependency Property in a Workflow Activity

末鹿安然 提交于 2020-01-04 09:39:21
问题 I am building a number of Custom Activities in Windows Workflow and I need to add a DependencyProperty which can list a number of values for that property which the user can then select when using the activity. e.g. True or False. I know how to simply pass a default using the PropertyMetadata, and presume that I will have to pass a list/class now the PropertyMetadata? Has anyone already got an example of how to do this please? (Example Code below) public static DependencyProperty TestProperty

Schedule children DynamicActivity loaded from external XAML with parameters

心不动则不痛 提交于 2020-01-04 09:37:03
问题 Scenario : I'm implementing a parent activity which executes other activity from external source(database), following this Ron Jacobs post. This approach works but have a few problems in my case, because WorkflowInvoker don't get the parent extensions: Tracking is disabled for childrens My custom data sharing extension don't work Extensions can change depending on the host, so I can't simply add new ones again. Potential solution : Instead of Invoke the children XAML, I'm scheduling it(I

Schedule children DynamicActivity loaded from external XAML with parameters

五迷三道 提交于 2020-01-04 09:33:26
问题 Scenario : I'm implementing a parent activity which executes other activity from external source(database), following this Ron Jacobs post. This approach works but have a few problems in my case, because WorkflowInvoker don't get the parent extensions: Tracking is disabled for childrens My custom data sharing extension don't work Extensions can change depending on the host, so I can't simply add new ones again. Potential solution : Instead of Invoke the children XAML, I'm scheduling it(I

cannot modify .csproj files using build auto with tfs 13

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 16:51:42
问题 I created a workflow activity named EditCsproj which is a C# class that I added to my build template. I put it right after the Initialize Workspace step. This workflow has to get all .csproj files in the directory path that I provide as a parameter and it has to modify them. But for each files, I have the following error : Access to the path 'file.csproj' is denied. I run Visual Studio with Administrator rights and I already changed the msbuild multi-proc property to false. Does anybody have