Hide Forgot
Description of problem: It is possible to import a process via the designer, but if there's a WorkItemDefinition to go with it, you have to manually copy and paste the source. Creating a new file with wid as an extension opens a WorkItemDefinition editor without any option to import/upload it. You basically have to do the work again. If you are allowed to import processes, you should be allowed to upload other files that go with processes. Version-Release number of selected component (if applicable): BRMS 5.3.0 ER4
WorkItemDefinitions editor is a simple text editor so you can paste your existing definition right into it and save (you would have to change the icon url to point to an existing icon present in Guvnor). You can also in Guvnor say New -> File and import your existing definition as well.
New -> File is what I did. That resulted in what I described already. In the new BRMS 5.3.0 ER4 you either provide a wid as an extension an get the text editor, or don't provide an extension and Guvnor tells you to do it and doesn't create the File without it. The definition thus can't be imported.
Sorry, what? What is your suggestion here if any if you don't like the way it works now? Current options in guvnor: a) create a new workitem definition, paste your existing into it or create it in the editor b) create a new asset in Guvnor, give it a name, and a .wid extension and browser to existing one. Thanks.
This is the way it works now: 1) You can choose to create a WID, as you describe in a) - that opens the text editor. 2) Or you can choose to create a new file, there you have 3 options as far as WID goes: 2A) You enter "wid" as an extension. Guvnor creates a new file and opens the text editor. You can't upload anything. 2B) You enter ".wid" as an extension. Guvnor creates a new file, you can upload something. When you try downloading it, you get a file yourFile..wid, which obviously isn't what you wanted, with those 2 dots. 2C) You don't enter an extension. Then Guvnor doesn't let you create the new file. The way I think would be better is in the case 1) let the user choose (much like when creating a new package) whether he wants to create a new definition (which would open the text editor) or import one into Guvnor (which would let you browse your files for an existing one). And in case 2A) keep the upload only, perhaps. It might also work to always use the text editor in case 1) and always offer upload in case 2A) (even with "wid" as an extension).
I think you won't get the ".." in the asset name if you specify just "wid" and not ".wid" in the file extension. I don't know if with the current number of ways to do this we should change the Guvnor UI for this for BRMS 5.3, but you guys make the call on that. Honestly it's not worth it IMO as Designer will allow to graphically create a service node in the future versions w/o having to touch a .wid configuration.
Yes, if you specify just "wid" and not ".wid" in the file extension, you don't get the ".." - but you also can't import the file then, because the text editor gets opened with that extension. The thing is - no matter if the Designer allows you to create that in a clever way - we have an Eclipse editor too. If you allow users to import processes done in Eclipse editor, you should also allow them to upload the WIDs that belong to those processes. Otherwise they have to recreate them. I just don't think it is right to make the user do that. It might be a simple solution of "don't open the text editor for a 'wid' extension file, let the user upload it". There's still the text editor available, if you choose to create the WID in Guvnor (via Knowledge Bases->Create New->New Work Item Definition). It certainly is not my place to make decision on that, that's what we have the "ack" flags for.