레지스트리에서 다음과 같은 사용자 지정주기를 구성했습니다. 미국과 전환은 다음과 같습니다 :WSO2 거버넌스 레지스트리 : API를 통해 라이프 사이클 상태를 설정 하시겠습니까?
in.design (initial)
-> in.development
-> in.production
-> in.text
in.development
-> in.test
in.test
-> released
released
-> in.production
in.production
-> deprecated
deprecated
-> retired (end)
사용 사례 : 배치 조정을 다른 시스템에 적극적으로 관리하는 유물에 대한.
문제 : 특정 아티팩트에 대해 API를 통해 "in.production"상태를 설정해야합니다.
다음과 같은 가능성을 검토했습니다. * 라이프 사이클을 이슈에 첨부 할 수있는 GenericArtifact API. => Lifecycle-State * "CustomLifecyclesChecklistAdminService"를 설정할 수는 없지만 이는 오히려 내부 API이며 UI로 구동됩니다. 프로그램하기가 어렵습니다.
질문은 다음과 같습니다. 이슈의 라이프 사이클 상태를 초기 상태가 아닌 상태로 설정하는 방법이 있습니까?
내 자신의 대답 (더 나은 솔루션이있다?) :
이// When "simulating" the behaviour of the UI, the following works. It feels a little awkward and looks brittle to me. Found out how to use it via debugger.
CustomLifecyclesChecklistAdminServiceStub clc = ...
// these are representing the check boxes in the UI
String[] params = { "false", "true", "false" };
clc.invokeAspect(path, lifecycleName, "to.production", params);