public abstract class Activity extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ActivityFacade |
facade |
| Modifier | Constructor and Description |
|---|---|
protected |
Activity() |
protected |
Activity(ActivityFacade facade) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
begin()
Méthode appelée avant l'execute et le terminate
|
ActivityResultContext |
doExecute() |
protected void |
end()
Méthode appelée après l'execute et le terminate
|
protected abstract ActivityResultContext |
execute() |
protected AbortManager |
getAbortManager() |
long |
getActivityId() |
protected ArrayLong |
getArrayLongVariable(String name) |
protected Boolean |
getBooleanVariable(String name) |
List<ActivityFacade> |
getChildren() |
protected InputStream |
getInputStreamVariable(String name) |
protected Integer |
getIntVariable(long id,
String name) |
protected Integer |
getIntVariable(String name) |
protected LocalDate |
getLocalDateVariable(String name) |
protected Long |
getLongVariable(long id,
String name) |
protected Long |
getLongVariable(String name) |
protected String |
getStringVariable(long id,
String name) |
protected String |
getStringVariable(String name) |
protected Object |
getVariable(String name) |
void |
onAfterCommit()
Appelé après le commit, typiquement pour logger le temps y compris le temps de commit
|
void |
onError(Throwable exception)
Appelé si l'activité est mise en erreur (typiquement après 5 retry)
|
protected void |
putVariable(String key,
Serializable value) |
void |
setFacade(ActivityFacade facade) |
void |
testAbort() |
protected ActivityFacade facade
protected Activity()
protected Activity(ActivityFacade facade)
protected abstract ActivityResultContext execute() throws Exception
Exceptionprotected void begin()
throws Exception
Exceptionprotected void end()
throws Exception
Exceptionpublic final ActivityResultContext doExecute() throws Exception
Exceptionpublic void onError(Throwable exception)
exception - public void onAfterCommit()
public void testAbort()
public long getActivityId()
public List<ActivityFacade> getChildren()
protected InputStream getInputStreamVariable(String name)
protected void putVariable(String key, Serializable value)
public void setFacade(ActivityFacade facade)
protected AbortManager getAbortManager()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.