[Anthill-pro] Event Selector - comparing last build status
Uldis Karlovs-Karlovskis
uldisk at ctco.lv
Thu Jan 31 06:06:53 CST 2008
Can You give some sample?
This returned null and there is no other ways how to get status:
if (event instanceof WorkflowEvent && event.getCase().isComplete()) {
WorkflowCase currentWorkflowCase = event.getCase();
String status =
currentWorkflowCase.getBuildLife().getPrevBuildLife().getLatestStatusName();
}
Uldis Karlovs-Karlovskis, C. T. Co
uldis.karlovs-karlovskis at ctco.lv
-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Ryan Smith
Sent: ceturtdiena, 2008. gada 31. janvārī 0:40
To: AnthillPro user and support list.
Subject: Re: [Anthill-pro] Event Selector - comparing last build status
If your script has BuildLife object, there is a getPrevBuildLife() method on
it.
Ryan Smith
Wes Bramhall wrote:
> I am trying to make a custom Event Selector that will notify if the
> current build is a success and the previous one is a failure. How would
> I access the previous build life to determine if it was a failure? I
> don't see a way to access previous build lives except by status.
>
>
>
> Thanks,
>
> -Wes
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
--
===========================================================
Ryan Smith. 2044 Euclid Ave., Suite 600
Lead Developer Cleveland, Ohio 44115
Urbancode, Inc.
email: rws at urbancode.com
web: www.urbancode.com phone: 216-858-9000
web: www.anthillpro.com fax: 216-858-9602
===========================================================
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
More information about the Anthill-pro
mailing list