Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

QuestionnaireBatchJob class

From Catglobe Wiki
Revision as of 09:29, 6 December 2024 by Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>QuestionnaireBatchJob</nowiki> |Description=<nowiki>Process each QAS with some custom logic in a optimal way.</nowiki> |InheritsFrom=object|Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscriptParameters_Template|Type=int|Name=<nowiki>questionnaireId</nowiki>|Description=<nowiki>Id of the base questionnaire</nowiki>}} |Description=<nowiki>Process each QAS with some custom logic in a optimal way.</nowiki>}} |Methods= {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

QuestionnaireBatchJob



Process each QAS with some custom logic in a optimal way.

Parent class

Inherits from object

Constructors

  • (int questionnaireId "Id of the base questionnaire") - Process each QAS with some custom logic in a optimal way.

Methods

  • Empty AttachQuestionnaire(int questionnaireId "Id of the questionnaire", bool latestOnly "If user has multiple qas, only include last created or error", bool completedOnly "Limit by qas that is completed", string questionLabel "Label of the question to load") - Load readonly question from another questionnaire based on UserId
  • Empty AttachQuestionnaire(int questionnaireId "Id of the questionnaire", bool latestOnly "If user has multiple qas, only include last created or error", bool completedOnly "Limit by qas that is completed", string questionLabel "Label of the question to load", string alias "Alias to use in execute parameter naming") - Load readonly question from another questionnaire based on UserId with an alias
  • Empty Execute(Function runner "The function called for each QAS - parameter names infers which questions to load") - Run the batch job - implicitly saves all modified question data
  • (From object) string ToString() - The string representation of the object.

Properties

  • bool CompletedOnly { get; set; } - Get/Set Limit by qas that is completed. Default true
  • bool CurrentCompleted { get; set; } - Get/Set current qas to completed or not
  • int CurrentId { get; } - Get current qas id
  • bool CurrentIsTest { get; } - Get current qas is test qas
  • bool IncludeTest { get; set; } - Get/Set if include test qas. Default false
  • bool LatestOnly { get; set; } - Get/Set If user has multiple qas, only include last created or all. Default false
  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.