Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A new window titled "Task Parameters" will now open that lists the parameters making them available for editing, and the default parameters for this task are as follows;

...

Column
width30

Image Removed

...

width70%

...

titleserver


Image Added

Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Specify the computer name of the server the task is to be run on,

...

titleapplication
Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Specify the correct "application" that you are using for the Exchange ActiveSync..

If you have multiple DualShield backend servers, then you need to specify the computer name of the server that will run this task

Select the parameter "Serverapplication" then click the  button, and a new window titled "Parameter - Edit" will open;

Image Removed

At Specify the prompt correct "application" that you are using for the Exchange ActiveSync by clicking on the down Arrow and selecting the correct Application from the list

Image Added


Then Name", enter the machine name of the server where the task will be running, then click  to update the parameter.

Image Added



  • Expand
    titleClick here for more information on editing task parameters
    Include Page
    Editing Task Parameters
    Editing Task Parameters


...

Section


Column
width30


Column
width70%




Expand
titleName:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Enter the name to be assigned to the task within the management console.




Expand
titleDescription: (Optional)


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Enter a description of what the task will do.




Expand
titleScript Version: (Optional)


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

The version number of the task.




Expand
titleSchedule:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

This field is used to specify when the task is scheduled to executed.




Expand
titleEnable Schedule:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

This field will determine if the task schedule is enabled (if enabled the task will execute at the scheduled time).




Expand
titleRepeat Count:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Specifies how many times the task should be repeated after the task is executed.

Expand
titleScript:
Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

import com.deepnet.das.token.TokenAssignment
import com.deepnet.das.token.Product
import com.deepnet.das.exception.ProductNotFoundException

// this task will only be executed on specified server
if(server && ! InetAddress.getLocalHost().getHostName().equalsIgnoreCase(server)){
setEndMessage("Task execution has been bypassed")
return;
}

// currently, only check DeviceID product
def product = Product.findByAlgorithm('DNS/ASDID')
if(!product){
throw new ProductNotFoundException()
}

// find all ACTIVE token assignments of product
def query = {
eq('status', 'ACTIVE')
token{
eq('product', product)
}
}

def count = TokenAssignment.createCriteria().count(query) def criteria = TokenAssignment.createCriteria()
def scrollable = criteria.scroll(query)
def notified = 0

while(scrollable.next()){
def tas =  scrollable.get(0)
if(tas.reactivateNotice(application))
notified++
onProgress(count, "Tokens checked:  " + count)
}

setEndMessage("Sent notice to tokens: " + notified + "/" + count)







Scheduling the Task

Select the "Enable Schedule" checkbox to ensure the task schedule is activated, then use the pencil icon ("")  to specify the time and frequency settings for automated task execution.

...

A new window will open titled "Execute Task" will then open (the window will be populated with the default task property settings);

Image RemovedImage Added

Ensure the parameters "Execute On Server" and "parameter "Application" contains the computer correct name of the server the task is to be run onApplication, and the name of the corr3ect correct application that you are using for Excahange ActiveSync, then click the  button. 

...

titleClick here for more information on manually executing tasks

...