Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2425

The task' parameters are missing when lauching it from a AddTaskClientSideElement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC4
    • 4.0RC3
    • None
    • None

      I has defined a schedulable task with a parameter :

      <extension id="org.ametys.plugins.odfmigration40.OdfMigrationSchedulable"
                             class="org.ametys.plugins.odfmigration40.OdfMigrationSchedulable"
                             point="org.ametys.core.schedule.SchedulableExtensionPoint">
                      <label i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_LABEL</label>
                      <description i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_DESC</description>
                      <icon-glyph>ametysicon-hammer23</icon-glyph>
                      <acceptConcurrentExecution>false</acceptConcurrentExecution>
                      <parameters>
                          <param id="default-catalog" type="string">
                              <label i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_PARAM_DEFAULT_CATALOG_LABEL</label>
                              <description i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_PARAM_DEFAULT_CATALOG_DESCRIPTION</description>
                          </param>
                     </parameters>
      </extension>
      

      and I has also defined a controller to launch this schedulable as following:

      <extension id="org.ametys.plugins.odfmigration40.Migrate"
                        point="org.ametys.core.ui.RibbonControlsManager"
                        class="org.ametys.core.ui.AddTaskClientSideElement">
                      <class>
                          <label i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_LABEL</label>
                          <description i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_DESC</description>
                          <schedulable>org.ametys.plugins.odfmigration40.OdfMigrationSchedulable</schedulable>
                          <fireProcess>NOW</fireProcess>
                          <log-category>org.ametys.plugins.odfmigration40.OdfMigrationSchedulable</log-category>
                          <log-title i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_LABEL</log-title>
                          <icon-glyph>ametysicon-three115</icon-glyph>
                          <confirm-title i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_LABEL</confirm-title>
                          <confirm-msg i18n="true">PLUGINS_ODF_MIGRATION_SCHEDULER_MIGRATE_CONFIRM</confirm-msg>
                      </class>
      </extension>
      

      When the task is run from this controller, I cannot enter my parameter.

            sprieul Simon Prieul (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: