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#

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

Grunt debugging from Webstorm
You have to run grunt-cli as a Node application: Create a new Node.js Run/Debug configuration: Run->Edit configurations... In Path to Node choose your node binary, ie: /Users/someuser/nvm/v0.10.5/bin/node In Working Directory, choose your Gruntfile.js directory, ie /Projects/someproject In Path to Node App JS File, choose your Grunt CLI path (you can choose the grunt-cli symlink created on your node bin directory, WebStorm will use the symlink target), ie: /Users/someuser/nvm/v0.10.5/lib/node_modules/grunt-cli/bin/grunt (C:UserssomeuserAppDataRoaming pm ode_modulesgrunt-cliingrunt on Windows 7) In Application parameters enter the Grunt task to run, ie test Click on Run or Debug and you are done :)

Categories : Node Js

Setup Jade With webstorm on MAC
The EISDIR error is caused when a Node application expects a file, but gets a directory. This particular instance of that error was thrown by this block of code: fs.writeFile(path, output, function(err){ if (err) throw err; console.log(' 33[90mrendered 33[36m%s33[0m', path); }); You can tell because it's not error number 156, but the line number of the relevant code. Do you, by any chance have a directory named main.html in /Applications/MAMP/htdocs/HTMLCodes/Sports/public_html? Also, you should be able to just execute the command, jade main.jade without the second argument. That would seem to make your life easier. Though if your dead set on using Webstorm on a Mac, this configuration should work equally well, or to keep it really simple, just put $File

Categories : Osx

cannot open file '%f' webstorm
This is something I have no idea why it was showing that message. But upon research,, I found in the menu properties there is the extra "%f" at the end. Remove that, voila. It works with no annoying error.

Categories : Misc

WebStorm - Node.JS project
it's not currently supported - please vote for WEB-1173 and WEB-8333

Categories : Debugging

How to run build.dart in WebStorm?
OK, thanks to LazyOne's hint I was able to dig a bit deeper. The solution to this is to create a File Watcher in WebStorm with the following options: Scope: Project Files Program: [your path to]dart-sdkindart.exe Arguments: build.dart Working Directory: $ProjectFileDir$ This will run the build.dart every time a file in your project changes, pretty much exactly like the Dart Editor.

Categories : Dart

webstorm: typescript bool vs. boolean
Webstorm language service currently only works with 0.8.x, The typescript language service inside WebStrom does not understand the changes made in 0.9.x, and since the TypeScript language service api changed (for the better imho) from 0.8 to 0.9 its not a drop in replacement. A new version of WebStorm with these features is on the way though (should be soon).

Categories : Javascript

WebStorm Linking to a .js file in HTML
No idea what 'Webstorm' is, but your HTML contains no reference to the jQuery library. This is where $ is defined. At the following above your existing <script> tag: <script type="text/javascript" src="[ PATH TO JQUERY ]"></script>

Categories : Javascript

Multi-select Jetbrains Webstorm
Well, you cannot. I think you're talking about the multiple cursors that are present in Sublime Text 2. But, if your text is aligned, then you can change it using the ALT + CLICK and dragging that. You can vote for this feature as lena mentions. UPDATE This feature is now supported in Webstorm 8. If you press the ALT key and click on a different location, you will get a separate cursor there. Before, you could only drag and create cursors in the same line, however, now you can place your cursor wherever you want to. Please take a look at this video to learn more.

Categories : Misc

How to set up instant code completion in WebStorm 7 EAP?
It can just be slow. If explicit Ctrl+Space is as slow, I'd suggest you to file a performance problem request to http://youtrack.jetbrains.com/ with a CPU snapshot attached (http://devnet.jetbrains.com/docs/DOC-1253).

Categories : Intellij Idea

WebStorm and PHPStorm debug php and js at same time
Solution: As LazyOne suggested I should use "zero configuration" option inside PhpStorm, complete instructions at jetbrains/... Below is a description of the steps: Install Xdebug (sudo apt-get install php5-xdebug) Add inside /etc/php5/apache2/php.ini the lines: [Xdebug] zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 restart apache: "service apache2 restart" check Xdebug is enabled "php --version" should show "with xDebug vx.x" Toggle the “Listen debugger connections” button., this will listen for incoming connections to the test.php script Set a breakpoint in the test.php source code Activate the xdebug debugger, to do this we need to set a special GET/POST or COOKIE paramete

Categories : PHP

Getting angularJS autcomplete in Webstorm/PHPStorm
If you don't already have angular set up, go to Preferences > Project Settings > Javascript > Libraries and add your version of angular. As for autocomplete in html strings, I don't think that's going to happen with the current version of PHPStorm, but in most other places, it should do the trick.

Categories : Angularjs

Webstorm don't recognize node.js third party modules
It seems that the '..params' module is exporting a constructor function that constructs an object which has kioskParams as an attribute. And the constructor itself doesn't have an attribute called kioskParams. It can be easier understood if you write it like this: var SyParams = require('../params'); // The module exports a constructor ... var syParams = new SyParams(); // You construct the actual object syParams.kioskParams; //Then you access its members

Categories : Node Js

webstorm typescript display compile error
Based on Meta Discussion Update (25/8/2013) This issue has been fixed in typescript 0.9.1 Update (7/8/2013) Looks like this issue is already on the radar, please vote for it to make it a BIG blip.

Categories : Typescript

WebStorm debug mode doesn't hit breakpoints
I have the same situation as yours, except that I'm building my app using Backbone.js and RequireJs and the app is running on localhost. My app can run in debug mode in Chrome but the breakpoints cannot be hit. I solve the problem by mapping the Remote URL and my local directory. You can define this in your JavaScript debug configuration profile in the Run->Edit Configurations. You can refer to this wonderful tutorial: Debugging your JavaScript app using WebStorm. Happy debugging!

Categories : Google Chrome

Deploying AngularJS Seed application in WebStorm
I use WebStorm 7, so there might be some discrepancy in comparison with version 6 that you're using, but the over-all functionality is the same. Quick solution: Open the file in the editor and right click in the code to access the context menu. Choose the "Debug" option, which should start a debug session pointing to the current page. Configuration solution: WebStorm supports configurations for setting up different debugging scenarios. From the "Run" menu, choose the "Configurations" option. Add a JavaScript debug configuration, and add the URL you want in the designated field within the dialog presented. Then, when you initialize a debugging session (a general one, not one for a specific page), you're presented a small dialog that allows you to choose a debug configuration. Maybe ther

Categories : Angularjs

How do you set up Webstorm 6.0 to breakpoint debug a nodejs application?
I use webstorm and it's great. Having looked at that documentation, I agree. If you're just starting out, you don't need all the remote and attach to existing processes options. The easiest option would be to rightclick on your main js file and choose debug. Setting breakpoints is the same as in most editors these days, just click left of the line. If you don't get the debug option when you right click then you need to make a run/debug configuration which sounds worse than it is. Select "Run" -> "Edit configurations". Click the plus sign. Choose "Node.js" Click on the browse ... button on the Path to Node App js file and choose the file you want to debug Click Ok. Click on the bug!

Categories : Node Js

Shortcut to quickly run a project from a Javascript in WebStorm?
To have the application opened in a specific browser of your choice, choose View | Web preview on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu.

Categories : Javascript

how to align text to specific character in phpstorm or webstorm?
Cmd+Alt+L (in Mac) or Ctrl+Alt+L (Win) and PHP Storm will format code depends of your Code style in Settings. TO set this code style go: File -> Settings -> Code style -> PHP(choose here your language) -> Other -> Align key-value pair - mark as checked. And then press Reformat code (Ctrl+Alt+L) and voila. You will get code, styled you write above.

Categories : PHP

Closure Compiler annotations in WebStorm 6, how to use Record Types?
The first example the annotation is incorrectly applying to socket.on, not to the callback function. In addition, the annotation is formatted incorrectly. An @param tag describes exactly one parameter and it's type. You are attempting to describe two. Also, record types only need one set of braces surrounding them. Here's one way that might look: /** * @param {string} eventName, * @param {function({ pageId: string })} callback */ socket.on = function(eventName, callback) {}; socket.on('page:getSource', function (data) { //data = { pageId: id } console.log(data.pageId) }); Your second example seems correct - but since the socket.on definition wasn't provided I can't verify. Here's a similar test case that does work: // ==ClosureCompiler== // @compilation_level ADVANCED_OPTI

Categories : Javascript

Webstorm: how to exclude javascript from code completion in typescript project
Right click on the folder that contains your compiled javascript and select "Mark Directory As" then "Excluded". WebStorm will hide the directory from the project view, stop indexing it for searches and code completion, and not include it in code refactoring tracing. I tend to mark all build output as ignored and ensure that WebStorm is only worrying itself with the source.

Categories : Typescript

webstorm + typescript "unresolved variable" after adding reference path
Modify it to "export interface IBaseClass" and on the other side you need to require it. At runtime you might get an error loading a js file not there. If so make an empty js file. My recommendation : do not have a file just with interfaces when using requirejs/commonjs

Categories : Typescript

Webstorm - Link html class reference to scss file
As @Iena said, it's not possible. Try voting for the issue (http://youtrack.jetbrains.com/issue/WEB-6737) and JetBrains may add the feature.

Categories : Intellij Idea

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 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

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

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

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

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

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

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

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

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#

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



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