w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Workflow / Workflow Service combination? How to use Receive activity on 'normal' workflow?
Yes, the Workflow Service with AppFabric is ideal and should just work out of the box if I understand your problem correctly. For your question "However, then how can clients communicatate with that specific workflow?" the answer is correlation and you can easily set that up in the first Receive. You just add a CorrelationHandle variable and set the Receive's CorrelatesOn for an incoming parameter (ownerid?) and CorrelatesWith to that handle. Do the same for all other receives and the incoming messages will always be routed to the right instance. AppFabric will help in that your WF service will be unloaded from memory and persisted when it's idle for too long, woken up when the new receive comes and etc. It will also help in that you can set autostart on your IIS app pool. WAS will activ

Categories : C#

Windows Workflow Foundation v4.5: Receives within ParallForEach activity causes duplicate bookmark name error
It seems that this is the expected behavior. To resolve this issue, instead of running multiple instances of the same activity within ParallelForEach, the workflow starts multiple instances of anther workflow. Therefore, ParallelForEach is no longer need, since individual workflow instances can run in parallel.

Categories : C#

SP 2010 Custom Workflow - WinWF Internal Error, Terminating Workflow only when DelayActivity is used
To whomever comes across this issue, I found the solution and unfortunately it is a bit of a PEBCAK error. Right after the delay completed, I was referencing a value that was null. However, in my defense I didn't realize that this was occurring. This was due to the fact that I didn't realize that when a workflow sleeps between tasksactivities the breakpoints are not hit upon re-activating. I am still looking into whether I can correct that or if it is just the way things are. So anyways, if you are getting some weird error after a Delay Activity, look further in the code and see if it is possibly something else.

Categories : Sharepoint

Accessing date directly in workflow.xml in case of oozie workflow jobs
AFAIK, no there is no way to access these variables in the workflow itself. I've always worked around this by adding in some additional dummy data outputs and properties that mirror the coordinator variables for year / month / day and then you can reference them in the workflow.

Categories : Hadoop

How do I create an Approval Workflow that updates the List Item that started the Workflow?
I discovered the answer to this question on my own. It's due to the way SharePoint handles Tasks during a workflow. I was using the "Assign a Task" or "Assign a To-Do" when I needed to use COLLECT DATA FROM USER. This will return the Id of the task, which can be used later to retrieve the user's Approval or Rejection.

Categories : Sharepoint

Workflow Foundation on a cloud platform
Check out the Workflow Manager 1.0 that was recently announced. This is a stand alone server that provides high density workflow execution. Initially it will be installable on premises as well as on a Windows Azure Virtual Machine; however, in the future they plan to also offer as a service on Windows Azure. Since it is a stand alone server it could also be deployed to AWS or other virtual machine hosting partners.

Categories : Azure

Localizing a Windows Foundation Workflow service
Try setting up a workflow variable to hold the current culture, and anytime you need to use it for localizing text you could pull the value from the workflow variable. This also tackles the off chance on if your workflow can be suspended, then later on be resumed on a different server on the other side of the world, so it preserved the original culture it was spawned with.

Categories : C#

Windows Workflow Foundation: Persist in Parallel Sequences
Your basic premise is wrong..... Workflow will only be processing one of the tasks, it can't be processing 2 AND 6. It will not process 6 until task 2 completes, and that branch becomes idle (at the Persist point). So the fact that the whole workflow gets persisted doesn't matter.

Categories : Dotnet

Do Workflow Foundation 4 Workflows Preserve Object References After Persistence
You are actually asking two different questions here: What semantics are used to call activities? It is the same as a normal .net function call. Reference types (objects) are passed by reference and value types (bool, int, struct, ...) are passed by value (=copy). So if you inherited your own class public class MyClass {....}, it will only pass references around and all your activities work on the very same instance. What data gets persisted? The complete instance is serialized and persisted. This means all your fields will be there after resuming. Your class have to be serialzable or decorated with a [DataContract]attribute. See also this comment: Windows Workflow Foundation 4.0 and Persistence

Categories : Dotnet

Code Review Workflow + Feature Branching in TFS
You're not missing anything. This is an unfortunate problem associated with the way Code Reviews were implemented, they can only be linked to one changeset, not to a range of changes. If your team is used to a high frequency of checkins on their feature branches, then having every individual changeset reviewed using the tool may be a lot of overhead. But that would be my recommendation. There is a trick, it's not ideal, but it may help. You can check out (on your feature branch) all files that were changed since the last checkin. Then request a review. It will create a shelveset with your changes and associate that to the review. That way you don't have to perform the merge prior to requesting the review. Just make sure you merge the latest version from main into your feature branch bef

Categories : Visual Studio

Change async workflow builder to count steps?
You could use a tuple ('a, int, int) to track the current result, the total number of steps and the number executed so far. Then you could write a function to take the current state, and the next async function to execute e.g. //create the initial state let startCount steps = ((), 0, steps) let withCount af (a, c, steps) = async { let nc = c + 1 let! res = af a do printfn "%d %d" nc steps return (res, nc, steps) } withCount takes a function which returns the next async operation, and the current state. It creates the next workflow, increments the number of executed steps and prints the status before returning the new state. You can then use it like: async { let init = startCount 4 let! t = withCount doSomething init let! t2 = withCount doSomething2 t l

Categories : F#

Ideal workflow for Git repository for software project and companion server code?
As to the first question, how to track client and server sides together in a way that the server side is still a standalone project. You could incorporate the server code as a submodule into the client project. ~/client$ git submodule add foo@bar:server.git ~/client$ git commit This inserts the server repo, accessible at SSH URL foo@bar:server.git into your client project into subdir server. An alternative of submodules are subtree merges. As to checking out the server code into nginx. Create a bare repo somewhere on the server, let's say /var/git/server.git, and set up its worktree into /var/www/server/ cd /var/git mkdir server.git && cd server.git git init --bare git config --bool core.bare false git config --path core.worktree /var/www/server/ Set up its post-receive hook

Categories : IOS

Cannot locate resource workflowdesigner.xaml When creating XAML Workflow Activity in Visual Studio 2010 using CRM 2011 SDK
That is a known bug. I contacted Microsoft and they confirmed it. I was told to look for a fix in UR 17. UR 16 was released in January so it should be out "soon". Update Rollup history: http://support.microsoft.com/kb/2555051/en-us (I realize this is a late reply, but it was a recent issue for me.)

Categories : Visual Studio 2010

PHP PDO workflow
According to the documentation 'http://php.net/pdostatement.rowcount' it's a bad practice to use rowcount with SELECT statements because many databases can not return the number of rows affected by a SELECT statement. For checking user it's better to use: Select count(*) ..... and PDOStatement:execute + PDOStatement:fetchColumn. Also keep in mind (STH->execute() doesn't check anything it only says that your query is executed without errors.

Categories : PHP

Git workflow in Drupal
You can refer the concepts of branching in GIT u can maintain the different branching for different environments refer this link http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging

Categories : GIT

Git/Mercurial Workflow
what is the best way to make the master branch? Use hgflow extension (branch-based, not clone-based) and do not re-invent the wheel

Categories : GIT

Git Workflow Questions
and have both branches as separate repos they are in ONE repo, but on DIFFERENT branches, so check out the specific branch in PHPSTORM you are working on. If your are finisht you only push this branch. So if you work on dev. If you are working now on dev and in 5 minutes on live, then just change branches - that is exaclty what they are for. In your PHPStorm you have on the right buttom a field "git: ", just click there and a submenu opens with the point "local branches". In this you can switch between your local branches. This article explains more about git workflow in detail: http://nvie.com/posts/a-successful-git-branching-model/

Categories : GIT

Gerrit and Git workflow
Push your changes from a different branch than the one you're tracking on the remote. That is, only update your local master by pulling, and push only from non-master branches. Workflow something like: git co master # switch to master branch git pull # update from origin git co -b work # make a working branch ... # work work work git commit -m "My #1 commit message" # commit git push HEAD:refs/publish/master # push to gerrit for publishing on master ... # wait wait wait git co master # switch to master branch git pull # update... etc, etc etc.

Categories : GIT

What is workflow of the React
Thanks, that's a very good question. Here's a rough overview of what is happening behind the scenes: Initialization It all starts with this line: React.renderComponent(<TodoApp />, mountNode); This instantiate the TodoApp component which calls: TodoApp::getInitialState() then, it renders the TodoApp component TodoApp::render() which in turns instantiate a TodoList TodoList::render() At this point, we have everything we need in order to render the initial markup <div> <h3>TODO</h3> <ul></ul> <!-- <TodoList> --> <form> <input value="" /> <button>Add #1</button> </form> </div> It is stringified and added inside of mountNode via innerHTML OnChange Then let's say you're going t

Categories : Javascript

GIT workflow troubles
The issue you might see is that you're pushing to a non-bare repository. This means that the staging repository has a working copy, since you cloned it from another one, and Git disallow pushing changes to the current branch of remote repository that has a working copy. This should have raised an error from git push operation, maybe you didn't pay attention to it? To fix this, you'll want to change the staging repo to a bare one, and checkout the working copy to a different location on the server. You can also look at deployment tools such as git-ftp. See also this page.

Categories : GIT

Going through a sprint workflow as a QA
I have been developing with Agile and sprints for many years now and the testing has always occurred on stories (PBI) when then are completed, not on tasks within a PBI. Reason is mainly because a PBI should have what is called acceptance criteria which are observable and measurable and allows the Product owner or tester to verify a story is completed. Those criteria are what breaks or makes a story to be completed / closed in our agile organisation of sprints. For me, it makes sense that the testing occurs once all the tasks are completed so you can ensure that testing covers and completes the acceptance criteria perfectly. That being said, the agile method is flexible,and, maybe, in your context, it will make more sense to tests every tasks when they are completed. I Hope this will

Categories : Testing

F# custom computation workflow
Asynchronous workflows automatically support error handling through exceptions, so the idiomatic solution is to just use exceptions. If you want to distinguish some special kind of errors, then you can just define a custom exception type: exception MyError of string // Workflow succeeds and returns 1000 let a = async { return 1000 } // Workflow throws 'MyError' exception // (using return! means that it can be treated as a workflow returning int) let b = async { return! raise (MyError "some message") } // Exceptions are automatically propagated let sum = async { let! r1 = a let! r2 = b return r1 + r2 } If you want to handle exceptions, you can use try ... with MyError msg -> ... inside an asynchronous workflow. You could define a custom computation builder that re-implements

Categories : F#

PHP and Javascript - log complete workflow
There's no perfect solution here but you will probably have to just use browser debugging tools like Firefox's Firebug or Chrome's debugger . Using these tools you can see JavaScript errors, AJAX requests, PHP (server) responses, individual page file loads etc etc.

Categories : PHP

Python Workflow like RStudio?
The canonical way of doing this in vim is to run vim inside a gnu-screen or tmux session with the REPL in a second screen in the session. You can then use vim-slime to send code from vim to the REPL.

Categories : Python

Simple BPM or Workflow in Javascript
BPM isn't designed for "page flow". Most do include some sort of page flow technology for their own UIs, but I don't know of any that really promote that as a feature for building UIs in other technologies. Fundamentally, what you are looking for is an MVC framework. You have your pages (views) and assumably you have your model already, but you are looking for a controller to link them together. I'm aware of Cordova conceptually, but I don't have any hands-on experience so I don't feel comfortable making a flat out recommendation. I do know that Sencha Touch has some MVC functionality, and that it works fairly well with Cordova/PhoneGap, so that might be a direction for you to start in. Even if that doesn't work out for you, I can see that "Cordova MVC" and "PhoneGap MVC" provide several

Categories : Javascript

Git deployment rollback workflow
Please have a look at Capistrano and Chef which require ruby/ror support. But are great deployment tools. Python's fabric is also an awesome tool.

Categories : Linux

GWT workflow with webdesign agency
I think that the first part is to identify which parts of the page are static and which parts of the page need GWT. You will place their images in one or more ClientBundle (it allows you to get all images in a single HTTP request). You will place ther CSS in a CSSResouce. By the way, you can also give them a link to the GWT widget gallery in order to give them an idea about what you can easily do. Then, if they give you some static file, the easier way to integrate it is to work with uiBinder with the useful <HTMLPanel> tag which allows you to put pure HTML in your GWT app. For example, if your agency gives you this HTML code with a text and a button: <div><input type="button"/></div> you can integrate this in uiBinder like this : MyComponent.ui.xml : <

Categories : Gwt

Prioritize some workflow executions over others
It's a good question, it had me scratching my head for a while. Of course, there is more than one way to skin this cat and there exists a number of valid solutions. I focused here on the simplest possible that I could conceive of, namely, execution of tasks in order of priority within a single workflow. The scenario goes as follows: I define one activity worker serving two task lists, default_tasks and urgent_tasks, with a trivial logic: If there are pending tasks on the urgent_tasks list, then pick one from there, Otherwise, pick a task from default_tasks Execute any task selected. The question is how to check if any high priority tasks are pending? CountPendingActivityTasks API comes to the rescue! I know you use Flow for development. My example is written using boto.swf.layer2 a

Categories : Amazon

Broken WF4 workflow rehydration
In the end I decompiled System.Activities.DurableInstancing. The only setter for WorkflowHostType on SqlWorkflowInstanceStore was in ExtractWorkflowHostType: private void ExtractWorkflowHostType(IDictionary<XName, InstanceValue> commandMetadata) { InstanceValue instanceValue; if (commandMetadata.TryGetValue(WorkflowNamespace.WorkflowHostType, out instanceValue)) { XName xName = instanceValue.Value as XName; if (xName == null) { throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SR.InvalidMetadataValue(WorkflowNamespace.WorkflowHostType, typeof(XName).Name))); } byte[] bytes = Encoding.Unicode.GetBytes(xName.ToString()); base.Store.WorkflowHostType = new Guid(HashHelper.ComputeHash(bytes));

Categories : Wcf

SSRS workflow report
Based on your description, your data seems like this: create table Jobs ( jobID int , jobName varchar(100) ) create table Events ( jobID int , eventDate datetime , eventText varchar(100) ) insert into Jobs select 1, 'Job1' insert into Jobs select 2, 'Job2' insert into Events select 1, '01-jan-2013 10:00', 'Start' insert into Events select 1, '01-jan-2013 10:30', 'Work' insert into Events select 1, '01-jan-2013 11:00', 'End' insert into Events select 2, '01-jan-2013 10:00', 'Start' insert into Events select 2, '01-jan-2013 10:10', 'Work' insert into Events select 2, '01-jan-2013 10:20', 'End' insert into Events select 2, '01-jan-2013 10:30', 'Start' insert into Events select 2, '01-jan-2013 10:40', 'Work' insert into Events select 2, '01-jan-2013 10:50', 'End' insert into Eve

Categories : Sql Server

RTC workflow with multiple streams?
is this the most efficient way to go about this? Yes, in that it is certainly more effective than creating one stream per developer ;) The Stream is the public publication space. The repo workspaces are the private (or scoped) publication spaces. All collaboration goes mainly through the Stream. consider a project with 2 streams: version 1.1 and version 2.0. These 2 streams are being worked on in parallel, and we need to bounce around between the two You can work on both through 2 different repo workspaces, each one referring in their flow target section their respective Stream. The only difficulty is regarding the Eclipse Workspace, which has as an ID the project name, which means you cannot work on your Project P2.0 (named "P") in the same Eclipse workspace if said workspac

Categories : Misc

Alfred Workflow not working at all
Are you running this code within a Run Script action? Is the goal to copy it to the clipboard? If so, replace print(password) with return password. Then, add a Copy to Clipboard Output that connects to this Run Script action. This ought to get what you want.

Categories : Python

Git Workflow: Local to server
The repo on the server should be a "bare" repository. Do it like this: ssh to the server and create a bare git repo: git init --bare /path/to/repos/project.git On your local PC, add a remote like this: git remote add origin ssh://user@example.com/absolute/path/to/repos/project.git And push to the remote for the first time: git push -u origin master Notes: "origin" is just a common name for the main remote, you could name it anything you want, and replace that in both commands above. When you give the url of the remote, the path component must be absolute path on the server. For example if the repository is in your home directory, then it will look something like ssh://user@example.com/home/user/path/to/repos/project.git.

Categories : GIT

PostgreSQL development workflow
Well, your question is actually quite relevant to any database developer, and, if I understand it correctly, there is another way to get to your desired results. One interesting thing to mention is that your idea of separating different changes into different files is the concept of migrations of Ruby On Rails. You might even be able to use the rake utility to keep track of a workflow like yours. But now to what I think migh be your solution. PostgreSQL, and others to be sincere, have specific utilities to handle data and schemas like what you probably need. The pg_dumpall command-line executable will dump the whole database into a file or the console, in a way that the psql utility can simply "reload" into the same, or into another (virgin) database. So, if you want to keep only the c

Categories : Database

SSL renegotiation workflow for HTTP
(1) is insecure and therefore pointless to discuss further. You've already leaked the information before you even ask for the credentials. (2) is the correct way to do this. The client shouldn't be closing the connection if it is configured to allow renegotiation. Due to an SSL security problem last year or so there was temporarily a phase where SSL renegotiation was disallowed by default. You may be running into this. In that case you should be issuing an HTTP redirect first, and closing the connection at your end to force the client to use a new connection, and the new connection should ask for a client certificate. How you arrange that in your code is up to you.

Categories : Java

Oozie Workflow and Coordinator
Problem was both oozie.wf.application.path and oozie.coord.application.path existed in the coordinator properties file. I removed oozie.wf.application.path and the coordinator worked. thanks

Categories : Hadoop

Start Workflow everyday
The only way I could think of do to that is to create a timerjob that launches the specific workflow. That would require you to code the timerjob, but as such, launching a workflow from a timerjob is rather easy.

Categories : Sharepoint

TFS workflow transition for custom WIT field
You are replicating the behavior of the built-in State field. Why do you want to create a new one ? How would you manage two workflows for the same element (WI) ? I think you should use the reason field to store this information. There is a built-in feature to manage the list of possible reasons per transition.

Categories : Visual Studio

Is EpiServer7 Windows Workflow Deprecated?
I guess that statement means that workflow support was limited in the new Edit UI in EPiServer 7.0 CMS. However, it is supported in EPiServer 7.1 Edit UI. Please take a look at the Release notes.

Categories : Misc

How to abort a workflow transition in Plone
The recommended way is to set a guard instead. The guard expression should be able to look up a view to facilitate more complex guard code, but when a guard returns False the transition isn't even listed as available.

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.