Skip to content

Commit

Permalink
fix: message type for create process
Browse files Browse the repository at this point in the history
  • Loading branch information
schoenenberg committed Feb 14, 2024
1 parent 5258ccb commit 5dc8dda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ subprojects {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/truzzt/mds-ap3")
version = "0.2.5"
version = "0.2.6"
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import com.truzzt.extension.logginghouse.client.ids.multipart.MultipartSenderDelegate;
import com.truzzt.extension.logginghouse.client.ids.multipart.ResponseUtil;
import de.fraunhofer.iais.eis.DynamicAttributeToken;
import de.fraunhofer.iais.eis.LogMessageBuilder;
import de.fraunhofer.iais.eis.Message;
import de.fraunhofer.iais.eis.MessageProcessedNotificationMessageImpl;
import de.fraunhofer.iais.eis.RequestMessageBuilder;
import org.json.JSONObject;

import java.util.List;
Expand All @@ -36,7 +36,7 @@ public CreateProcessMessageSender() {

@Override
public Message buildMessageHeader(CreateProcessMessage createProcessMessage, DynamicAttributeToken token) {
return new LogMessageBuilder()
return new RequestMessageBuilder()
._modelVersion_(IdsConstants.INFORMATION_MODEL_VERSION)
._issued_(CalendarUtil.gregorianNow())
._securityToken_(token)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void createProcess(ContractAgreement contractAgreement, URL clearingHouse
}

public void logContractAgreement(ContractAgreement contractAgreement, URL clearingHouseLogUrl) {
monitor.info("Logging contract agreement to LoggingHouse");
monitor.info("Logging contract agreement to LoggingHouse with contract id: " + contractAgreement.getId());
var logMessage = new LogMessage(clearingHouseLogUrl, connectorBaseUrl, contractAgreement);
dispatcherRegistry.dispatch(Object.class, logMessage);
}
Expand Down

0 comments on commit 5dc8dda

Please sign in to comment.