[jboss-jira] [JBoss JIRA] (JBRULES-3571) Planner examples: import files should be filtered by files that can be imported

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Fri Aug 17 02:16:15 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet resolved JBRULES-3571.
---------------------------------------

         Assignee: Geoffrey De Smet
    Fix Version/s: 5.5.0.Beta1
       Resolution: Done


Fixed by Sam Van Malderen
  https://github.com/droolsjbpm/drools-planner/pull/9
                
> Planner examples: import files should be filtered by files that can be imported
> -------------------------------------------------------------------------------
>
>                 Key: JBRULES-3571
>                 URL: https://issues.jboss.org/browse/JBRULES-3571
>             Project: Drools
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Geoffrey De Smet
>            Assignee: Geoffrey De Smet
>            Priority: Trivial
>              Labels: starter
>             Fix For: 5.5.0.Beta1
>
>
> Especially in the machine reassignement example this is annoying, because when you click the "import" button there, it shows "assignement.*" and "model.*" files, but only model files can be succesfully imported.
> The trick is to use a filefilter.
> Howto:
> Create the method SolutionBusiness.acceptImportFile()
> which delegates to AbstractSolutionImporter.acceptInputFile().
> Next, in SolverAndPersistenceFrame.ImportAction.actionPerformed(...) set a FileFilter and make it use SolutionBusiness.acceptImportFile().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list