• User's guide
  • API
Search Results for

    Show / Hide Table of Contents
    • Concepts
    • Installation
    • Configuration
      • Overview
      • License
      • Datasources
      • Configuration
      • Plug-Ins
      • Codepages
      • Environment Variables
      • Include files
      • Example
    • Jobs
      • Jobs
      • Include
      • Multi-Threaded Jobs
      • Tracking Jobs
    • Tasks
      • Overview
      • Copy Check
      • Excel
      • File Compare
      • File Copy
      • File Dump
      • File Edit
      • File Format
      • Foreach
      • Generate
      • IMS/DB Data Conversion
      • JCL Submit
      • Listcat
      • Log
      • Powershell
      • Set Environment Variable
      • Sql
      • Stored Procedure Compare
      • Table Compare
      • Table Copy
      • Table Load
      • Table Scan
      • Table Unload
      • User Script
    • Layouts
      • Overview
      • XML Definition
      • COBOL Definition
      • Field data Types
    • Extensibility
      • Extending Ianus
      • Column Comparators
      • Column Converters
      • Record Comparators
      • File Editors
      • User Script
      • Record Layout Match Class
      • Column Layout Match Class
      • User Fields
      • Codepages
      • Resources
    • Usage
      • Command Line
      • Monitors
      • Programmatically
      • Unit Testing
    • Known Issues
    • Disclaimers

    User Task

    Users can create custom complete tasks extending the HPE.Ianus.Task abstract class.

    The class must therefore implement the constructor and method Run, to performed the desired actions and return the desired status for the task.

    To implement a custom task, it is required good knowledge of Ianus internals.

    Example

        [TaskCommand("mytask")]
        public class MyCustomTask : HPE.Ianus.Task
        {
            public MyCustomTask(Job j, long id, string name, XElement c) : base(j, id, name, c)
            {
            }
    
            public override void Run()
            {
                RunReady($"Starting My Task");
                Log.Info("Hello world");
                DoMyWork();
                RunCompleted("Task done");
            }
        }
    
    In This Article
    Back to top Copyright 2021 - Hewlett-Packard Enterprise