Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/Delete the event in On-Do Action #96

Open
ThiernoSitaBarry opened this issue Oct 23, 2024 · 0 comments
Open

Add/Delete the event in On-Do Action #96

ThiernoSitaBarry opened this issue Oct 23, 2024 · 0 comments

Comments

@ThiernoSitaBarry
Copy link

I want to add the event in the On-Do action, when the job completion is not OK.

I have used the script below :

job = JobCommand('Job1', command='echo Hello')

job.if_list.append(

IfCompletionStatus('action_if_failure', completion_status='NOTOK',

     on_list=[

          EventAdd('setEvent', event="condition", date=Event.Date.OrderDate)

  ]

)

)

But i got this error "AAPI request failed: first property must be type but is Event , CompletionStatus is an unknown keyword therefore it is assumed to be an object, but it has no object syntax "

If you have any idea to correct this error please !

Thank you in advance.

King Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant