Lexmark C925 Lexmark Document Distributor - Page 34

Services, Notes

Page 34 highlights

Developing workflow solutions 34 // Set the default value of the prompt myprompt.value = "sample response"; // Execute the prompt caller.ask(myprompt); // Return the value of the prompt return myprompt.value; } Notes: • No prompts should be used when developing a script to be run on a schedule. • Some prompts are not supported for single‑function printers. For more information, see "Supported printers" on page 9. Services Services are used after document capture for processing and routing documents, as well as providing confirmation of the job to the user. Services may also be used during document capture for processing answers to prompts, such as checking passwords. However, you should avoid excessive processing between successive prompts to prevent unexpected delays for the user. Use the following structure to create, manipulate, and execute a service: // Create an instance of the service object "ServiceClass" var myService = new ServiceClass(); // Set properties of the service object myService.field1 = value1; myService.field2 = value2; // Execute the service myService.execute(); Note: Services that require a user to scan a document should not be used when developing a script to be run on a schedule.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82

// Set the default value of the prompt
myprompt.value = "sample response";
// Execute the prompt
caller.ask(myprompt);
// Return the value of the prompt
return myprompt.value;
}
Notes:
No prompts should be used when developing a script to be run on a schedule.
Some prompts are not supported for single
function printers. For more information, see “Supported printers”
on page 9.
Services
Services are used after document capture for processing and routing documents, as well as providing confirmation of
the job to the user. Services may also be used during document capture for processing answers to prompts, such as
checking passwords. However, you should avoid excessive processing between successive prompts to prevent
unexpected delays for the user.
Use the following structure to create, manipulate, and execute a service:
// Create an instance of the service object "ServiceClass"
var myService = new ServiceClass();
// Set properties of the service object
myService.field1 = value1;
myService.field2 = value2;
// Execute the service
myService.execute();
Note:
Services that require a user to scan a document should not be used when developing a script to be run on a
schedule.
Developing workflow solutions
34