cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow error while ImpEx

Former Member
0 Likes
650

Hello Hybris Community,

I have an issue importing an ImpEx sample workflow.

Would you please ellaborate to resolve this issue. The script example has been uploaded @GitHub: https://github.com/andimit/ImpEx/issues/1

Thank you in advance!

View Entire Topic
Former Member
0 Likes

Hi !

The problem you have is to do with access rights. Rather than doing it manually, I suggest you use the following script to assign the access rights to your productmanager users:

 $START_USERRIGHTS
  Type;UID;MemberOfGroups;Password;Target;read;change;create;delete;change_perm
  UserGroup;productmanagergroup;
  ;;;;AbstractWorkflowAction;+;+;+;+;+;;
  ;;;;WorkflowActionTemplate;+;+;+;+;+;;
  ;;;;WorkflowAction;+;+;+;+;+;;
  ;;;;Workflow;+;+;+;+;+;;
  ;;;;InboxView;+;+;+;+;+;;
  ;;;;WorkflowTemplate;+;+;+;+;+;;
  ;;;;WorkflowItemAttachment;+;+;+;+;+;;
  ;;;;WorkflowActionStatus;+;+;+;+;+;;
  ;;;;WorkflowActionComment;+;+;+;+;+;;
  ;;;;WorkflowDecision;+;+;+;+;+;;
  ;;;;WorkflowActionLinkRelation;+;+;+;+;+;;
  $END_USERRIGHTS 

If you want to assign it manually, you have to find the appropriate type (e.g., WorkflowAction) in the Access Rights tab of your employee's editor area and clicking on the '+' button on the top left of the table for the 'Objects' table in this tab.

Please assign the appropriate access rights to your productmanager users before trying to have them as the assigned user for the WorkflowTemplate and WorkflowActionTemplate items. I would advise you to include the access rights ImpEx script in the script you have for your new users and workflow imports. Put it after the creation of your new users and before the workflow-related data.


After looking over the ImpEx script you have, I saw that you used the wrong attribute names in the headers, for example 'activationScript' is supposed to have the capitalized letter 'S'. For the workflow action templates, it's 'rendererTemplate' not 'renderTemplate'. There are also other issues that I fixed. The fully fixed ImpEx script is in the following attached ZIP file. I have tested this on hAC and it is properly creating the workflow-related items and the employees, with the appropriate access rights. (One thing to quickly note is that you need to ensure that you have the 'productValidation' renderer template as in the data you mentioned as I had to create a dummy one with this name. Change it to one that you require (or simply leave it blank) if it causes problems.)

Click for Fixed ImpEx Script

Again, I've tested this and it is importing the required data. If you have any further questions, let me know.

Best regards,

Niko