Adaptation Libero Manufacturing to release 5.1 WorkFlow editor

208 views
Skip to first unread message

Natalia

unread,
Jun 20, 2018, 4:24:48 PM6/20/18
to iDempiere
Hello!
I try to adapt libero manufacturing to release 5.1 but it is my first such experiance and i encounter with problem.

I created my plugin, then i created public class MITSFormFactory implements IFormFactory  and register it - it works correct but then i lounch class  WFPanelManufacturing() and java speacks that the type is incomparetible.

The question - is there other type of factory which can return a right type?

my code below:
//-----------------------
package org.eevolution.factories;

import org.adempiere.webui.factory.IFormFactory;
import org.adempiere.webui.panel.ADForm;
import org.eevolution.form.WFPanelManufacturing;

public class MITSFormFactory implements IFormFactory {

    @Override
    public WFPanelManufacturing newFormInstance(String formName) {
   
        if (formName.equals("org.eevolution.form.WFPanelManufacturing"))
            return new WFPanelManufacturing();
   
       
        return null;


    }

}

//-----------------------

package org.eevolution.form;


import org.compiere.apps.wf.WFPanel;
import org.compiere.util.DB;
import org.compiere.wf.MWorkflow;

/**
 * Manufacturing WorkFlow Editor
 * @author Teo Sarca, SC ARHIPAC SERVICE SRL
 */
public class WFPanelManufacturing extends WFPanel {
    private static final long serialVersionUID = 1L;
   
    private static final String WF_WhereClause = MWorkflow.COLUMNNAME_WorkflowType+" IN ("
                                                        +    DB.TO_STRING(MWorkflow.WORKFLOWTYPE_Manufacturing)
                                                        +","+DB.TO_STRING(MWorkflow.WORKFLOWTYPE_Quality)
                                                        +")";
   
    private static final int WF_Window_ID = 53005; // TODO: HARDCODED (Manufacturing Workflows)
    /*
SELECT AD_Window_Id
FROM AD_Window
WHERE Name = 'Manufacturing Workflows'
     */
   
    /**
     * Default constructor 
     */
    public WFPanelManufacturing() {
        super(null, WF_WhereClause, WF_Window_ID);
       
    }
   
   
}

redhuan d. oon

unread,
Jun 28, 2018, 6:44:04 PM6/28/18
to iDempiere
Hi, please publish your plugin and give me the repository link so i can download to test it right away and in full.

redhuan d. oon

unread,
Jun 29, 2018, 11:51:31 PM6/29/18
to iDempiere
Hi, you sent me via email in a private link. You have to provide it publicly here as i am providing free community support (unless it is paid and private in communication). Also i could not find the code you described. You have to provide a README describing exactly where is the code.

Kind regards

Natalia

unread,
Jul 1, 2018, 12:34:15 PM7/1/18
to iDempiere
result below
i tried to fix it but I failed


суббота, 30 июня 2018 г., 6:51:31 UTC+3 пользователь redhuan d. oon написал:
Auto Generated Inline Image 1
Auto Generated Inline Image 2

redhuan d. oon

unread,
Jul 3, 2018, 2:18:34 AM7/3/18
to iDempiere

It seems to be doing Workflow model so using the general WF Editor in iDempiere should be sufficient.

Natalia

unread,
Jul 3, 2018, 5:54:44 AM7/3/18
to iDempiere
I just deleted this clause of menu and use editor of iDempiere

вторник, 3 июля 2018 г., 9:18:34 UTC+3 пользователь redhuan d. oon написал:
Reply all
Reply to author
Forward
0 new messages