Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space PRINSAG and version 9.0
Sv translation
languageen

You can stop an action from running by editing the code.
Within an action, you may come across a situation where you don't want the action to run. For example, you may be using a Copy action, but after filtering the file list, there isn't anything left to copy. If that happens, you can just leave one or more of the critical rule parameters blank to cause the rule to fail or you can throw an exception. Either way, an error appears in the History log. If an exception is generated, the exception message is also displayed in the History log. The action.Error event is still raised.

 

' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")

Sv translation
languagede

Sie können die Ausführung einer Aktion anhalten, indem Sie den Code bearbeiten.
Während der Ausführung einer Aktion können Situationen eintreten, in denen die Aktion nicht weiter ausgeführt werden soll. Möglicherweise führen Sie eine Aktion Kopieren aus, jedoch sind nach dem Filtern der Dateiliste keine Dateien zum Kopieren mehr vorhanden. In diesem Fall können Sie einfach einen oder mehrere wichtige Regelparameter leer lassen, sodass die Regel fehlschlägt oder eine Ausnahme ausgelöst werden kann. In beiden Fällen wird der Fehler im Ablaufprotokoll verzeichnet. Beim Generieren einer Ausnahme wird die Ausnahmemeldung ebenfalls im Ablaufprotokoll angegeben. Das Ereignis action.Error wird dennoch ausgelöst.
' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")

Sv translation
languagezh

可通过编辑代码停止操作的运行。
在操作中,您可能会遇到某种情况,在这种情况中您不希望操作继续运行。例如,您可能在使用复制操作,但在对文件列表进行过滤之后,未留下任何可供复制的内容。如果发生这种情况,您可以只需将一个或多个关键的规则参数保留为空,导致规则失败或抛出异常。采用以上任一方式时,在历史记录日志中都会显示一个错误。如果生成异常,则异常消息也会显示在历史记录日志中。同时仍然会抛出 action.Error 事件。
' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")

Sv translation
languagees

Es posible detener la ejecución de una acción editando el código.
En una acción, puede darse el caso de que no desee que se ejecute una acción. Por ejemplo, suponga que está usando una acción Copiar, pero, después de filtrar la lista de archivos, observa que no hay nada que copiar. Si se da el caso, puede dejar en blanco uno o varios de los parámetros críticos de la regla a fin de que ésta falle o puede desencadenar una excepción. De cualquiera de estas formas, se mostrará un error en el registro del historial. Si se genera una excepción, en el registro de historial también se muestra el mensaje de la excepción. El evento action.Error se seguirá produciendo.
' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")

Sv translation
languagefr

Vous pouvez empêcher une action de s'exécuter en modifiant le code.
Dans une action, vous pouvez rencontrer une situation où vous ne souhaitez pas que l'action s'exécute. Par exemple, vous pouvez être dans une action Copier mais, après avoir filtré la liste des fichiers, il ne reste plus rien à copier. Si cela se produit, vous pouvez simplement laisser un ou plusieurs des paramètres de règles essentiels vides afin de faire échouer la règle ou vous pouvez lancer une exception. De toute façon, une erreur apparaît dans l'historique. Si une exception est générée, le message d'exception s'affiche également dans le journal d'historique. L'événement action.Error est toujours déclenché.
' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")

Sv translation
languageja

コードを編集することで、実行中のアクションを停止できます。
アクションの実行中に、実行を停止する必要のある状況が生じる場合があります。たとえば、コピーアクションを使用したときに、ファイル リストをフィルタリングした後なのでコピー内容が残っていない場合があります。こうした状況が発生した場合は、1 つまたは複数の重要なルール パラメータを空白にしてルールをエラーにするか、例外を発生させることができます。どちらの場合にも、履歴ログにエラーが表示されます。例外が発生した場合は、例外メッセージも履歴ログに表示されます。さらに、action.Error イベントも引き続き発生します。
' Give up on this action and throw an exception
Throw New ApplicationException("Missing file.")