One Star VAD
One Star

Error importing a workflow process

Hi,
Currently, I'm working with MDM EE.
I'm playing with the MDM demo sample.
I've imported the 'product_product--1.0.bar' worflow process in the worflow perspective.
When I try to export the process to the MDM server, I have the following message :

Error importing a workflow process : java.net.UnknowHostException: local

Can you, please, help me in fixing this issue ?
Thank you in advance for any response !

  • MDM
19 REPLIES
Employee

Re: Error importing a workflow process

Hi VAD,
It looks like you misparametered the properties to connect to the MDM Server for deployment.
What you have to do is, in the Studio :
- Click on Window > Preferences > Talend > Import / Export > Talend MDM Server
- Check you correctly entered the right host, the right port (should be 127.0.0.1, 8080 if it's a local installation).
- Give administrator/administrator as credentials
Tell me if that works !
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi csonnefraud,
My MDM server has already the right host and port.
A stupid question : how give you administrator/administrator as credentials ?
Thanks a lot for your response !
Employee

Re: Error importing a workflow process

By double-clicking on your connection, here Smiley Happy
One Star VAD
One Star

Re: Error importing a workflow process

Hi csonnefraud,
It was really a stupid question :-)) !
I give administrator/administrator as credentials.
Unfortunately, I have again the same error when I try to export the worflow ... :-(
Another clue ?
Thanks a lot !
Employee

Re: Error importing a workflow process

Is your server really up ? Are you sure there's no typo in the user/password ?
Did you try to use the name/the IP of the computer that hosts the server ?
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi csonnefraud,
I've found my error (wrong computer name), now the workflow is exported to MDM Server. Thanks :-)
A process based on this workflow has been also created.
Currently, I'm follwing the instructions of the workflow demo (http://talendforge.org/wiki/doku.php?id=mdm:demo)
Next steps :

Run the workflow:
?Open a Product
?Open the dropdown list of runnable processes
?Select the price workflow and hit the run button (it may take a few seconds to instantiate the workflow the first time)
?Hit F5
?The Welcome page should now display a pending task, this is the initial step of the workflow where you enter the new price

When I open the dropdown list, I can't see the workflow as a runnable process.
Could you advice on missed steps ?
Thanks a lot in advance for your response.
Employee

Re: Error importing a workflow process

What's your process name ? To populate the drop-down list of an entity, it has to be named Runnable_*, where * is the name of the entity.
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi Cyril,
Thanks a lot for your response.
Now, I have the process in the drop-down list.
Unfortunately, I have another question :
The process runs without error (popup : it's done) but the Welcome page doesn't display a pending task.
Could you, please, help me again ?
Thanks a lot in advance !
Employee

Re: Error importing a workflow process

VAD,
Did you create the user "approver", and did you assign him the proper roles ?
If so, you have to connect with this user, so that you should see pending tasks in the welcome page.
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi Cyril,
Yes, I have created the user 'approver' and assigned him the proper roles (as mentionned in the demo).
As user/user, I run the process -> message "Process done"
According to the demo steps :
?The Welcome page should now display a pending task, this is the initial step of the workflow where you enter the new price
Unfortunately, I have no pending task.
Nevertheless, I have also run the process as approver/approver : no pending task again.
So, I think the problem coming from the workflow itself.
But I can't find out the solution ... :-)
Thanks a lot for your help.
Employee

Re: Error importing a workflow process

In the studio, use the MDM perspective. In the MDM repository, there's a "Workflow" family, where you should see the workflow you imported.
If so, can you open it, to see if there are active instances ?
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi Cyril,
I see active instances.
Process Instance List :
- Process : Product_Product
- Status : started
Process Tasks
- Task : Product_Product--1.0--1--DemandeNouveauPrix--it1--mainActivityInstance
- Status : ready
- Candidates : approver,user
Thank you for your help.
One Star VAD
One Star

Re: Error importing a workflow process

Cyril,
For futher information, please find below the server log :
21:39:15,374 INFO Exec: ItemsBrowserInterface.getRunnableProce
ssList()
21:39:15,421 INFO MDM set up with Product and Product
21:39:18,703 INFO Exec: ItemsBrowserInterface.getProperty()
21:39:18,890 ERROR Missing : in conversion data (231035933)
21:39:18,890 INFO Exec: ItemsBrowserInterface.processItem()
21:39:18,890 INFO Creating update-report for Product.23103593
3's action.
21:39:18,906 INFO Executing transformer for Product.231035933
's action.
21:39:19,078 INFO InitialContextFactory: nul
l
21:39:19,078 INFO ProviderURL: null
21:39:19,078 INFO ApiType: EJB2
21:39:24,265 INFO Started a new Process Instance: Product_Product--1.0
--1
21:39:24,374 INFO Init Process Variables: {Product_Family=null, mdm_po
rt=8080, newXPath_xpath=newXPath, Product_Family_xpath=null, mdm_host=169.254.25
.129, Product_Description_xpath=null, mDM_dataModel=Product, mDM_port=8080, newX
Path=, product_Id_xpath=Product/Id, MDM_universe=, Product_Id_xpath=Product/Id,
MDM_dataModel=Product, Product_Price_xpath=null, mDM_host=169.254.25.129, mDM_un
iverse=, Product_Name_xpath=null, MDM_dataCluster=Product, MDM_host=169.254.25.1
29, mdm_datacluster=Product, mdm_datamodel=Product, product_Id=231035933, Produc
t_Price=null, Product_Name=null, MDM_port=8080, Product_Id=231035933, Product_De
scription=null, mdm_universe=, mDM_dataCluster=Product}
21:39:24,374 INFO Saving update-report for Product.231035933'
s action.
21:39:24,499 INFO OpIsCreate && ModelIsProduct &&
ConceptIsProduct : false
21:39:24,515 INFO OpIsCreate && ContainerIsProduct
&& ModelIsProduct && EntityIsProduct : false
21:39:24,531 INFO OpIsUpdate && ContainerIsProduct
&& ModelIsProduct && EntityIsProduct : false
21:39:24,546 INFO OpIsCreate && ContainerIsProduct
&& ModelIsProduct && EntityIsProduct : false
21:39:24,546 ERROR Unable to find a routing rule fo
r document UpdateReport.Update.genericUI.1302032358890
21:39:24,765 INFO Exec: ItemsBrowserInterface.setTree()
21:39:24,765 INFO Exec: ItemsBrowserInterface.getViewables()
21:39:25,171 INFO Exec: ItemsBrowserInterface.getChildren()
21:39:31,687 INFO Exec: LayoutInterface.getMenus()
21:39:31,734 INFO Exec: ActionsInterface.getCluster()
21:39:31,734 INFO Exec: ActionsInterface.getModel()
21:39:31,734 INFO Exec: LayoutInterface.getUsernameAndUniverse
()
21:39:31,765 INFO Exec: WelcomeInterface.isHiddenLicense()
21:39:32,093 INFO Exec: WelcomeInterface.isHiddenTask()
21:39:32,499 INFO Exec: WelcomeInterface.getLicenseMsg()
21:39:32,499 INFO Exec: WelcomeInterface.getTaskMsg()
21:39:32,499 ERROR Apr 5, 2011 9:39:32 PM org.ow2.bonita.util.AccessorU
til resetContext
Thanks
VAD
Employee

Re: Error importing a workflow process

Hi VAD,
Can you show your user list, with their relative roles ?
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

Hi Cyril,
The user list with their relative roles :
administrator : System_admin
user : System_web, Demo_user
approver : System_web, Demo_user
Regards,
VAD
Employee

Re: Error importing a workflow process

Did you repect the case when you typed the role name ? The rolename is Demo_User.
Beware of the first caps for Demo and User; there must be a perfect matching between configuration & workflow.
Enclosed is a screenshot with the required rolename.
Regards,
Cyril
One Star VAD
One Star

Re: Error importing a workflow process

Hi Cyril,
I didn't type the role name : this role is created when you import the product demo and the role name is correct.
Nevertheless, I found out the solution. You have to give to 'Demo_User' role the read-only permission on 'Workflow tasks' (object type : menu).
Once done, the tasks are available in Web UI for user/user and approver/approver.
But, I still have an issue : the price isn't updated.
Steps :
- User requests a new price
- Approver approves the new price
- Once approved, the price should be updated.
In my case, the last step doesn't work. When I browse my record, after the request and approval steps, I don't see any updates.
Any ideas ?
Thanks a lot for your help.
Regards,
VAD
Employee

Re: Error importing a workflow process

Well done VAD... Indeed, there can be many reasons why your workflow isn't well parametered, I didn't spot that one.
For the other problem, has an Update Record been generated after the approval ?
Regards,
Cyril.
One Star VAD
One Star

Re: Error importing a workflow process

I don't think so ...
No UPDATE operation in the journal (Web UI)
In the studio, for the workflow, the process instance is finished. For this process, I've only two tasks :
- Product_Product--1.0--1--DemandeNouveauPrix--it1--mainActivityInstance
- Product_Product--1.0--1--ApprouvePrix--it1--mainActivityInstance
These tasks match the two first steps of the workflow.
Both are finished.
Should I have a 'Update record' task ?
Thanks for your help,
VAD