Click or drag to resize

PFJob Class

Base Packflow Job class. Implement to define a custom PFJob execution and persistable parameters.
Inheritance Hierarchy
SystemObject
  Packflow.Core.JobsPFJob
    More...

Namespace:  Packflow.Core.Jobs
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public abstract class PFJob : IPFLoggable

The PFJob type exposes the following members.

Constructors
  NameDescription
Public methodPFJob
You may instanciate a PFJob Implementation by using this constructor. Call Run() or RunAsync() on it to execute.
Top
Properties
  NameDescription
Public propertyDescription
Override this property to return a friendly description of the PFJob.
Public propertyExecutionGuid
Gets the execution unique identifier.
Public propertyExecutionId
Gets the execution Id.
Public propertyFullName
Gets the type full name.
Public propertyIsBusy
Gets a value indicating whether this instance is currently executing.
Public propertyIsCanceled
Gets a value indicating whether this execution should be canceled. Code in the Execute method should take this property into account for async cancelation.
Public propertyKey
Gets an unique key for this instance
Public propertyLogger
Gets the loggerfor this instance. Anything logged here can be retrieved as part of a job execution info.
Public propertyLogIdentification
Gets the log identification.
Protected propertyProgression
Gets the progression info object.
Public propertySettings
Gets the collection of settings for this PFJob. Typical usage doen't require manipulating this collection. Use the decorated properties on the PFJob instance instead.
Public propertySite
Gets the PFSite this PFJob belongs to.
Top
Methods
  NameDescription
Public methodCancelAsync
Call this method to cancel PFJob execution.
Protected methodExecute
Main job execution method. Will be called by the execution engine after a call to Run() or RunAsync(). Implementation should take the 'IsCanceled' property into account, and report progression via calls to 'OnProgressionChanged'.
Public methodGetChoicesForSetting
Gets the possible choices for given setting (or parameter).
Protected methodGetRunUsers
Override this property to return a list of users authorized to run this PFJob. Don't forget to include users from base method.
Protected methodInitJob
Initializes the job. Override this method to set default values to parameters, and to subscribe on job events.
Protected methodOnProgressionChanged
Call this method in 'Execute' to report a progression changed. Makes the 'Progression' property available.
Protected methodOnProgressionChanged(Int32, String)
Call this method in 'Execute' to report a progression changed. Makes the 'Progression' property available.
Public methodRun
Call this method to run PFJob synchronously.
Public methodRunAsync
Call this method to run PFJob asynchronously
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validates this job parameters. Override this method to provide custom validation for your parameters. Throw PFJobValidationException if necessary.
Top
Events
  NameDescription
Public eventExecuteCompleted
Occurs when the execution has completed.
Public eventExecuteProgressChanged
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
Examples
See Also
Inheritance Hierarchy
SystemObject
  Packflow.Core.JobsPFJob
    Packflow.Core.Jobs.ImplPFDatabaseStatusCollectorJob
    Packflow.Core.Jobs.ImplPFDomainGroupSyncJob
    Packflow.Core.Jobs.ImplPFGarbageCleaner
    Packflow.Core.Jobs.ImplPFIdentityCheckerJob
    Packflow.Core.Jobs.ImplPFIndexerJob
    Packflow.Core.Jobs.ImplPFOrphanTasksCleaner
    Packflow.Core.Jobs.ImplPFSystemTaskExecutor
    Packflow.Core.Jobs.ImplPFTaskReminderJob
    Packflow.Core.Jobs.ImplPFUserInfoUpdaterJob
    Packflow.Core.Jobs.ImplPFUserMerger
    Packflow.Core.Jobs.ImplPFUsersConsistencyJob
    Packflow.Core.Jobs.ImplPFUsersDomainConsistencyJob
    Packflow.Core.JobsPFActivityMonitoringInitializationJob
    Packflow.Core.JobsPFActivityMonitoringJob
    Packflow.Core.JobsPFExternalConnectionsSynchronizer
    Packflow.Core.JobsPFItemSaverJob