^1640696316275
@
sname
TaskDescriptor
slabel
TaskDescriptor
sgroup
普通任务
senable
true
scallback
false
scallbackCancel
false
sthread
false
ssingleInstance
false
ssaveAsGlobalVar
false
sschedule
false
sfixedRate
false
stimeUnit
MILLISECONDS
sfixTime
false
scalculatePassCount
false
Sdescription
#$@text#$@
<p>XWorker的app下的任务的定时执行器，用于执行app数据库里定义的具体任务。</p>

<p>&nbsp;</p>
#$@text#$@
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
screateLocalVarScope
false
ssaveReturn
false
sswitchResult
false
sdisableGlobalContext
false
sdebugLog
false
sdescriptors
xworker.lang.task.Task
sinheritDescription
false
sth_createIndex
true
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.task.Task/@actions1
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@doTask
    sname
    doTask
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.app.task.AppTaskManager
    smethodName
    doTask
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    doTask
    @/@actions/@createUI
    sname
    createUI
    snewActionContext
    false
    ssaveGlobalVariableMethod
    newActionContext
    sisSwtCreateMethod
    false
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    sdescriptors
    xworker.swt.actions.CommonActions/@CreateWidgets
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    createUI
      @/@actions/@createUI/@Widget
      sname
      Widget
      sdescriptors
      xworker.swt.actions.CommonActions/@CreateWidgets/@Widgets
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      sid
      Widget
        @/@actions/@createUI/@Widget/@Composite
        sname
        mainComposite
        sBORDER
        false
        sH_SCROLL
        false
        sV_SCROLL
        false
        sNO_BACKGROUND
        false
        sNO_FOCUS
        false
        sNO_MERGE_PAINTS
        false
        sNO_REDRAW_RESIZE
        false
        sNO_RADIO_GROUP
        false
        sEMBEDDED
        false
        sDOUBLE_BUFFERED
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        spack
        false
        svisible
        true
        sdescriptors
        xworker.swt.actions.CommonActions/@CreateWidgets/@Widgets/@Composite
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        Composite
          @/@actions/@createUI/@Widget/@Composite/@GridLayout
          sname
          GridLayout
          smakeColumnsEqualWidth
          false
          smarginWidth
          5
          smarginHeight
          5
          smarginLeft
          0
          smarginTop
          0
          smarginRight
          0
          smarginBottom
          0
          shorizontalSpacing
          5
          sverticalSpacing
          5
          sdescriptors
          xworker.swt.Layouts/@GridLayout
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          sid
          GridLayout
          @/@actions/@createUI/@Widget/@Composite/@form
          sname
          form
          sformType
          edit
          seditCols
          1
          sBORDER
          false
          sdataObject
          ognl:task.getThing().get("taskDataObject")
          sfireDataObjectMidify
          false
          sdescriptors
          xworker.swt.app.view.swt.Items/@DataObjectForm
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          sid
          form
            @/@actions/@createUI/@Widget/@Composite/@form/@GridData
            sname
            GridData
            sstyle
            FILL_BOTH
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            BEGINNING
            sverticalAlignment
            CENTER
            shorizontalSpan
            1
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_noThingRegistViewer
            false
            sth_fileMonitor
            false
            sth_mark
            false
            sth_registQueryOnlySelf
            false
            sid
            GridData
            @/@actions/@createUI/@Widget/@Composite/@form/@actions
            sname
            actions
            sdescriptors
            xworker.swt.app.view.swt.widgets.form.DataObjectForm/@actions1
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_noThingRegistViewer
            false
            sth_fileMonitor
            false
            sth_mark
            false
            sth_registQueryOnlySelf
            false
            sid
            actions
              @/@actions/@createUI/@Widget/@Composite/@form/@actions/@modified
              sname
              modified
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              scode
              saveButton.setEnabled(true);
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sswitchResult
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_registDisabled
              false
              sth_noThingRegistViewer
              false
              sth_fileMonitor
              false
              sth_mark
              false
              sth_registQueryOnlySelf
              false
              sid
              modified
          @/@actions/@createUI/@Widget/@Composite/@1508
          sname
          buttonComposite
          sBORDER
          false
          sH_SCROLL
          false
          sV_SCROLL
          false
          sNO_BACKGROUND
          false
          sNO_FOCUS
          false
          sNO_MERGE_PAINTS
          false
          sNO_REDRAW_RESIZE
          false
          sNO_RADIO_GROUP
          false
          sEMBEDDED
          false
          sDOUBLE_BUFFERED
          false
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Composite
          sid
          1508
            @/@actions/@createUI/@Widget/@Composite/@1508/@1509
            sname
            buttonCompositeGridData
            sstyle
            FILL_HORIZONTAL
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            END
            sverticalAlignment
            CENTER
            shorizontalSpan
            1
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sid
            1509
            @/@actions/@createUI/@Widget/@Composite/@1508/@1510
            sname
            buttonCompositeRowLayout
            sfill
            false
            sjustify
            false
            smarginWidth
            0
            smarginHeight
            0
            smarginLeft
            3
            smarginTop
            3
            smarginRight
            3
            smarginBottom
            3
            spack
            true
            sspacing
            3
            stype
            SWT.HORIZONTAL
            swrap
            true
            sdescriptors
            xworker.swt.Layouts/@RowLayout
            sid
            1510
            @/@actions/@createUI/@Widget/@Composite/@1508/@1511
            sname
            saveButton
            stext
            lang:d=保存&en=Save
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            false
            sredraw
            true
            spack
            false
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            1511
              @/@actions/@createUI/@Widget/@Composite/@1508/@1511/@1512
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              1512
              @/@actions/@createUI/@Widget/@Composite/@1508/@1511/@1513
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              1513
                @/@actions/@createUI/@Widget/@Composite/@1508/@1511/@1513/@1514
                sname
                saveButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                1514
                  @/@actions/@createUI/@Widget/@Composite/@1508/@1511/@1513/@1514/@GroovyAction
                  sname
                  GroovyAction
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
def data = form.doAction("getDataObject", actionContext);
data.update(actionContext);

saveButton.setEnabled(false);
#$@text#$@
                  sinterpretationType
                  Action
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sswitchResult
                  false
                  sdebugLog
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@GroovyAction
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_registDisabled
                  false
                  sth_noThingRegistViewer
                  false
                  sth_fileMonitor
                  false
                  sth_mark
                  false
                  sth_registQueryOnlySelf
                  false
                  sid
                  GroovyAction
            @/@actions/@createUI/@Widget/@Composite/@1508/@1515
            sname
            deleteButton
            stext
            lang:d=删除&enDelete
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            true
            sredraw
            true
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            1515
              @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1516
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              1516
              @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              1517
                @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518
                sname
                deleteButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                1518
                  @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518/@confirm
                  sname
                  confirm
                  sshell
                  ognl:deleteButton.getShell()
                  sicon
                  ICON_QUESTION
                  sbuttons
                  OK | CANCEL
                  stitle
                  lang:d=删除任务&en=Delete Task
                  smessage
                  lang:d=确实要删除该任务么？&en=Are you sure you want to delete the task?
                  sinterpretationType
                  Self
                  sattributeTemplate
                  false
                  schildsAttributeTemplate
                  false
                  svarScope
                  Local
                  sisSynchronized
                  false
                  sthrowException
                  true
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sswitchResult
                  false
                  sdisableGlobalContext
                  false
                  sdebugLog
                  false
                  sdescriptors
                  xworker.swt.actions.MessageBoxActions/@MessageBox
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_registDisabled
                  false
                  sth_noThingRegistViewer
                  false
                  sth_fileMonitor
                  false
                  sth_mark
                  false
                  sth_registQueryOnlySelf
                  false
                  sid
                  confirm
                    @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518/@confirm/@actions
                    sname
                    actions
                    sdescriptors
                    xworker.swt.actions.MessageBoxActions/@MessageBox/@actions1
                    sinheritDescription
                    false
                    sth_createIndex
                    false
                    sth_registMyChilds
                    false
                    sth_registDisabled
                    false
                    sth_noThingRegistViewer
                    false
                    sth_fileMonitor
                    false
                    sth_mark
                    false
                    sth_registQueryOnlySelf
                    false
                    sid
                    actions
                      @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518/@confirm/@actions/@ok
                      sname
                      ok
                      sisSynchronized
                      false
                      sthrowException
                      true
                      suseOtherAction
                      false
                      svarScope
                      Local
                      sdisableGlobalContext
                      false
                      Scode
#$@text#$@
import xworker.lang.task.TaskManager;
//从数据库中删除任务
def data = form.doAction("getDataObject", actionContext);
data.delete(actionContext);

TaskManager.remvoeScheduledTask(task.getThing());

//提示
tip(actionContext);
#$@text#$@
                      sinterpretationType
                      Action
                      screateLocalVarScope
                      false
                      ssaveReturn
                      false
                      sswitchResult
                      false
                      sdebugLog
                      false
                      sdescriptors
                      xworker.lang.actions.Actions/@GroovyAction
                      sinheritDescription
                      false
                      sth_createIndex
                      false
                      sth_registMyChilds
                      false
                      sth_registDisabled
                      false
                      sth_noThingRegistViewer
                      false
                      sth_fileMonitor
                      false
                      sth_mark
                      false
                      sth_registQueryOnlySelf
                      false
                      sid
                      ok
                        @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518/@confirm/@actions/@ok/@ActionDefined
                        sname
                        ActionDefined
                        sdescriptors
                        xworker.lang.actions.Inout/@ActionDefined
                        sinheritDescription
                        false
                        sth_createIndex
                        false
                        sth_registMyChilds
                        false
                        sth_registDisabled
                        false
                        sth_noThingRegistViewer
                        false
                        sth_fileMonitor
                        false
                        sth_mark
                        false
                        sth_registQueryOnlySelf
                        false
                        sid
                        ActionDefined
                          @/@actions/@createUI/@Widget/@Composite/@1508/@1515/@1517/@1518/@confirm/@actions/@ok/@ActionDefined/@tip
                          sname
                          tip
                          sshell
                          ognl:deleteButton.getShell()
                          sicon
                          ICON_INFORMATION
                          sbuttons
                          OK
                          stitle
                          lang:d=删除任务&en=Delete Task
                          smessage
                          lang:d=任务记录已删除，后台会自动移除该任务!&en=The task record has been deleted, the background will automatically remove the task!
                          sinterpretationType
                          Self
                          sattributeTemplate
                          false
                          schildsAttributeTemplate
                          false
                          svarScope
                          Local
                          sisSynchronized
                          false
                          sthrowException
                          true
                          screateLocalVarScope
                          false
                          ssaveReturn
                          false
                          sswitchResult
                          false
                          sdisableGlobalContext
                          false
                          sdebugLog
                          false
                          sdescriptors
                          xworker.swt.actions.MessageBoxActions/@MessageBox
                          sinheritDescription
                          false
                          sth_createIndex
                          false
                          sth_registMyChilds
                          false
                          sth_registDisabled
                          false
                          sth_noThingRegistViewer
                          false
                          sth_fileMonitor
                          false
                          sth_mark
                          false
                          sth_registQueryOnlySelf
                          false
                          sid
                          tip
