17 public function __construct()
19 $this->Name =
"agent_reso";
20 $this->Title = (
"REUSE.Software Analysis (forces *Ojo License Analysis*)");
21 $this->AgentName =
"reso";
23 parent::__construct();
32 return CheckARS($uploadId, $this->AgentName,
"reso agent",
"reso_ars");
39 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=
null)
42 $dependencies[] =
"agent_ojo";
43 if ($copyrightAgentScheduled) {
44 $dependencies[] =
"agent_copyright";
51 if ($jobQueueId != 0) {
55 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies, $uploadId);
66 foreach ($dependencies as $dependency) {
67 if ($dependency == $agentName) {
70 if (is_array($dependency) && $agentName == $dependency[
'name']) {
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)
Create UI plugin for Reso agent.
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $arguments=null)
AgentHasResults($uploadId=0)
isAgentIncluded($dependencies, $agentName)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.