Skip to content

The fax status returned from the "FaxMonitorEvent" is not correct in Windows 10 #12

@AnthonySTHO

Description

@AnthonySTHO

I have tried to implement my custom FaxMonitorEventListener and then add it to the client, I found that the event.getFaxJobStatus() is not correct when I compare it against the window fax queue

main program

FaxClient faxClient = FaxClientFactory.createFaxClient("windows", null);
MyFaxMonitorEventListener myFaxMonitorEventListener = new MyFaxMonitorEventListener();
faxClient.addFaxMonitorEventListener(myFaxMonitorEventListener);
public class MyFaxMonitorEventListener implements FaxMonitorEventListener {

	....

	@Override
	public void faxJobStatusChanged(FaxMonitorEvent event) {
		log.info("job: " + event.getFaxJob().getID() + " status:" + event.getFaxJobStatus() + " file:" + event.getFaxJob().getFile().getName());
		if (event.getFaxJobStatus() == FaxJobStatus.ERROR) {

		} else if (event.getFaxJobStatus() == FaxJobStatus.UNKNOWN) {


		}
	}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions