sivaprasad9394
Occasional Collector

DeleteOperation Interface usage in 5.2.2109 version?

Jump to solution

Hello Team,

I am using FS version 5.2.2109.

How to use DeleteOperation Interface here??

delete(Collection<IDProvider> elements, boolean ignoreIncomingReferences)

Deprecated. 

use DeleteOperation instead ; since 5.2.1804

Mycode:

ServerActionHandle<? extends DeleteElementProgress, Boolean> sah = AccessUtil.delete(

                            (IDProvider) storeElement, true);

Is there any examples for using DeleteOperation Interface instead of Delete in the AccessUtil Class??

Thank you.

0 Kudos
1 Solution

Accepted Solutions
switt
I'm new here

Hello Siva,

have you tried something like this?

Kopfzeile 1
OperationAgent operationAgent = context.requireSpecialist(OperationAgent.TYPE);
DeleteOperation del = operationAgent.getOperation(DeleteOperation.TYPE);
del.perform((IDProvider) storeElement);

View solution in original post

0 Kudos
1 Reply
switt
I'm new here

Hello Siva,

have you tried something like this?

Kopfzeile 1
OperationAgent operationAgent = context.requireSpecialist(OperationAgent.TYPE);
DeleteOperation del = operationAgent.getOperation(DeleteOperation.TYPE);
del.perform((IDProvider) storeElement);
0 Kudos